Jonathan Neuschäfer has uploaded this change for review. ( https://review.coreboot.org/22595
Change subject: arch/riscv: Remove supervisor_trap_entry ......................................................................
arch/riscv: Remove supervisor_trap_entry
Coreboot only maintains a single trap entry, because it only runs in machine mode.
Change-Id: I7324d9c8897d5c4e9d4784e7bc2a055890eab698 Signed-off-by: Jonathan Neuschäfer j.neuschaefer@gmx.net --- M src/arch/riscv/trap_util.S 1 file changed, 1 insertion(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/22595/1
diff --git a/src/arch/riscv/trap_util.S b/src/arch/riscv/trap_util.S index 3036f06..72a9ae1 100644 --- a/src/arch/riscv/trap_util.S +++ b/src/arch/riscv/trap_util.S @@ -107,15 +107,7 @@
.globl estack .text - .global supervisor_trap_entry -supervisor_trap_entry: - csrw mscratch, sp - # load in the top of the machine stack - la sp, _estack - addi sp,sp,-MENTRY_FRAME_SIZE - save_tf - move a0,sp - jal trap_handler + .global trap_entry trap_entry: csrw mscratch, sp