diff options
Diffstat (limited to 'src/arch/riscv')
-rw-r--r-- | src/arch/riscv/trap_util.S | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/arch/riscv/trap_util.S b/src/arch/riscv/trap_util.S index 3036f069ab..72a9ae1ced 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 |