diff options
Diffstat (limited to 'libc/sysdeps/linux/mips/bsd-setjmp.S')
-rw-r--r-- | libc/sysdeps/linux/mips/bsd-setjmp.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/bsd-setjmp.S b/libc/sysdeps/linux/mips/bsd-setjmp.S index 49a904d29..1f57a97e7 100644 --- a/libc/sysdeps/linux/mips/bsd-setjmp.S +++ b/libc/sysdeps/linux/mips/bsd-setjmp.S @@ -22,6 +22,7 @@ in setjmp doesn't clobber the state restored by longjmp. */ #include <sys/regdef.h> +#include <sys/asm.h> #ifdef __PIC__ .option pic2 @@ -36,9 +37,15 @@ setjmp: .set noreorder #ifdef __PIC__ +#if _MIPS_SIM == _MIPS_SIM_ABI32 .cpload t9 .set reorder la t9, __sigsetjmp +#else /* N32 */ + .cpsetup t9, v0, setjmp + PTR_LA t9, __sigsetjmp + .cprestore +#endif /* N32 */ #endif li a1, 1 /* Pass a second argument of one. */ #ifdef __PIC__ |