Skip to content

Commit 15e839b

Browse files
authored
Merge pull request #1935 from grumpycoders/ucontext-fix
Fixing ucontext's stack setting.
2 parents 65fe3e7 + 231efda commit 15e839b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mips/common/psxlibc/ucontext.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ makecontext:
110110
sw $a1, FUNCPTR($a0)
111111
sw $a2, ARGPTR($a0)
112112
sw $a0, S0PTR($a0)
113+
addiu $t0, -16
113114
addu $v1, $t0
114115
sw $v1, SPPTR($a0)
115116
jr $ra

0 commit comments

Comments
 (0)