diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-11-04 19:50:20 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-11-04 19:50:20 +0000 |
commit | cb12600bc59ec9211ecb5be3083e66f7c6c6d9ef (patch) | |
tree | ad8ca820494baaeaada85b9d30a702d68b461936 /libc/sysdeps/linux/mips/setjmp.S | |
parent | 141da0f0b098b17499c6c6e02a7d2cacc1d6d3ba (diff) |
mips64 patch from Atsushi Nemoto:
The mips64 N32/N64 ABI have a bit different register usage convention.
Also the register size for these ABI is 8 byte. Use ld/sd for them.
Diffstat (limited to 'libc/sysdeps/linux/mips/setjmp.S')
-rw-r--r-- | libc/sysdeps/linux/mips/setjmp.S | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/mips/setjmp.S b/libc/sysdeps/linux/mips/setjmp.S index 0d9a8d431..226f75524 100644 --- a/libc/sysdeps/linux/mips/setjmp.S +++ b/libc/sysdeps/linux/mips/setjmp.S @@ -17,6 +17,7 @@ 02111-1307 USA. */ #include <sys/regdef.h> +#include <sys/asm.h> /* The function __sigsetjmp_aux saves all the registers, but it can't reliably access the stack or frame pointers, so we pass them in as @@ -35,7 +36,11 @@ __sigsetjmp: #ifdef __PIC__ .set noreorder +#if _MIPS_SIM == _MIPS_SIM_ABI32 .cpload t9 +#else + .cpsetup t9, v0, __sigsetjmp +#endif .set reorder #endif move a2, sp @@ -45,7 +50,10 @@ __sigsetjmp: move a3, $fp #endif #ifdef __PIC__ - la t9, __sigsetjmp_aux + PTR_LA t9, __sigsetjmp_aux +#if _MIPS_SIM != _MIPS_SIM_ABI32 + .cpreturn +#endif jr t9 #else j __sigsetjmp_aux |