summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bsp/env/entry.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/bsp/env/entry.S b/bsp/env/entry.S
index cbf26eb..b433628 100644
--- a/bsp/env/entry.S
+++ b/bsp/env/entry.S
@@ -46,7 +46,7 @@ trap_entry:
csrr a0, mcause
csrr a1, mepc
mv a2, sp
- jal handle_trap
+ call handle_trap
csrw mepc, a0
# Remain in M-mode after mret
@@ -90,6 +90,7 @@ trap_entry:
.weak handle_trap
handle_trap:
- j handle_trap
+1:
+ j 1b
#endif