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/bits/setjmp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libc/sysdeps/linux/mips/bits/setjmp.h') diff --git a/libc/sysdeps/linux/mips/bits/setjmp.h b/libc/sysdeps/linux/mips/bits/setjmp.h index 4eb8e9f2a..08e74fe0a 100644 --- a/libc/sysdeps/linux/mips/bits/setjmp.h +++ b/libc/sysdeps/linux/mips/bits/setjmp.h @@ -24,6 +24,8 @@ # error "Never include directly; use instead." #endif +#include + typedef struct { /* Program counter. */ @@ -33,7 +35,11 @@ typedef struct void * __sp; /* Callee-saved registers s0 through s7. */ +#if _MIPS_SIM == _MIPS_SIM_ABI32 int __regs[8]; +#else + long long __regs[8]; +#endif /* The frame pointer. */ void * __fp; @@ -45,7 +51,11 @@ typedef struct int __fpc_csr; /* Callee-saved floating point registers. */ +#if _MIPS_SIM == _MIPS_SIM_ABI64 + double __fpregs[8]; +#else /* N32 || O32 */ double __fpregs[6]; +#endif /* N32 || O32 */ } __jmp_buf[1]; #ifdef __USE_MISC -- cgit v1.2.3