Skip to content

Commit f956817

Browse files
committed
Pass trap frame pointer to the _start_trap_rust function
1 parent c33a988 commit f956817

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

riscv-rt/asm.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ _start_trap:
128128
STORE a6, 14*REGBYTES(sp)
129129
STORE a7, 15*REGBYTES(sp)
130130

131+
add a0, sp, zero
131132
jal ra, _start_trap_rust
132133

133134
LOAD ra, 0*REGBYTES(sp)

0 commit comments

Comments
 (0)