Browse Source

Pass trap frame pointer to the _start_trap_rust function

Vadim Kaushan 5 years ago
parent
commit
f956817f40
1 changed files with 1 additions and 0 deletions
  1. 1 0
      riscv-rt/asm.S

+ 1 - 0
riscv-rt/asm.S

@@ -128,6 +128,7 @@ _start_trap:
     STORE a6, 14*REGBYTES(sp)
     STORE a7, 15*REGBYTES(sp)
 
+    add a0, sp, zero
     jal ra, _start_trap_rust
 
     LOAD ra, 0*REGBYTES(sp)