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/setjmp.S | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/mips/setjmp.S') 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 +#include /* 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 -- cgit v1.2.3