arch/riscv/trap_util.S: Use "li" pseudo-instruction to load a constant

Change-Id: I9759771fa6fc708d7d97509c5f5e0cefb8ab4c96
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/14962
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Jonathan Neuschäfer 2016-06-10 19:35:14 +02:00 committed by Martin Roth
parent 6f762171de
commit 4ac82401a8
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@
supervisor_trap_entry:
csrw mscratch, sp
# load in the top of the machine stack
la sp, 0x80FFF0 - 64
li sp, 0x80FFF0 - 64
1:addi sp,sp,-320
save_tf
move a0,sp