diff options
Diffstat (limited to 'libc/arch-mips/include/machine/setjmp.h')
-rw-r--r-- | libc/arch-mips/include/machine/setjmp.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/arch-mips/include/machine/setjmp.h b/libc/arch-mips/include/machine/setjmp.h index 55ba7be..4067d51 100644 --- a/libc/arch-mips/include/machine/setjmp.h +++ b/libc/arch-mips/include/machine/setjmp.h @@ -5,6 +5,11 @@ #ifndef _MIPS_SETJMP_H_ #define _MIPS_SETJMP_H_ -#define _JBLEN 157 /* size, in longs, of a jmp_buf */ +#ifdef __LP64__ +#define _JBLEN 25 /* size, in 8-byte longs, of a mips64 jmp_buf/sigjmp_buf */ +#else +#define _JBLEN 157 /* historical size, in 4-byte longs, of a mips32 jmp_buf */ + /* actual used size is 34 */ +#endif #endif /* !_MIPS_SETJMP_H_ */ |