Use PTR_ADDU to change sp, so that it works for n64 too.

This commit is contained in:
Jayachandran C. 2010-07-31 19:13:08 +00:00
parent dcd2709851
commit 9ca746fb79

View File

@ -580,8 +580,8 @@ END(prepare_usermode)
*/
.globl _C_LABEL(sigcode)
_C_LABEL(sigcode):
addu a0, sp, SIGF_UC # address of ucontext
li v0, SYS_sigreturn
PTR_ADDU a0, sp, SIGF_UC # address of ucontext
li v0, SYS_sigreturn
# sigreturn (ucp)
syscall
break 0 # just in case sigreturn fails