Skip to content

Commit 1ea33bc

Browse files
committed
inthandler: preserve full 64-bit value of stack pointer in the context
1 parent 4314a4a commit 1ea33bc

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
@@ -343,7 +343,7 @@ finalize_exception_frame:
343343
sd $28,(STACK_GPR+28*8)(sp) # GP
344344
# SP has been modified to make space for the exception frame,
345345
# but we want to save the previous value in the exception frame itself.
346-
addiu $1, sp, EXC_STACK_SIZE
346+
daddiu $1, sp, EXC_STACK_SIZE
347347
sd $1, (STACK_GPR+29*8)(sp) # SP
348348
sd $30,(STACK_GPR+30*8)(sp) # FP
349349
sdc1 $f20,(STACK_FPR+20*8)(sp)

0 commit comments

Comments
 (0)