Skip to content

Commit b9ab747

Browse files
committed
inthandler: preserve full 64-bit value of stack pointer in the context
1 parent 103de2b commit b9ab747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inthandler.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ finalize_exception_frame:
367367
sd $28,(STACK_GPR+28*8)(sp) # GP
368368
# SP has been modified to make space for the exception frame,
369369
# but we want to save the previous value in the exception frame itself.
370-
addiu $1, sp, EXC_STACK_SIZE
370+
daddiu $1, sp, EXC_STACK_SIZE
371371
sd $1, (STACK_GPR+29*8)(sp) # SP
372372
sd $30,(STACK_GPR+30*8)(sp) # FP
373373
sdc1 $f20,(STACK_FPR+20*8)(sp)

0 commit comments

Comments
 (0)