From cb12600bc59ec9211ecb5be3083e66f7c6c6d9ef Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 4 Nov 2006 19:50:20 +0000 Subject: 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. --- libc/sysdeps/linux/mips/bsd-setjmp.S | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libc/sysdeps/linux/mips/bsd-setjmp.S') 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 +#include #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__ -- cgit v1.2.3