diff options
| author | matt <matt@NetBSD.org> | 2009-08-12 05:12:58 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2009-08-12 05:12:58 +0000 |
| commit | 3fbfc25940544cec11cfcd6bc06b1ffcac563b32 (patch) | |
| tree | fed9dd607c62931ff69374f86a1301c676755ba3 | |
| parent | 21d93aff030ed0fb00c3974ff30575c8c93e481f (diff) | |
If using the N32 ABI, define _BSD_JBSLOT_T as long long. Keep _JBLEN
constant since _BSD_JBSLOT_T will now change in size so _JBLEN doesn't
have to.
| -rw-r--r-- | sys/arch/mips/include/setjmp.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/arch/mips/include/setjmp.h b/sys/arch/mips/include/setjmp.h index 4e96c899170..aaf80ea3cc9 100644 --- a/sys/arch/mips/include/setjmp.h +++ b/sys/arch/mips/include/setjmp.h @@ -1,4 +1,4 @@ -/* $NetBSD: setjmp.h,v 1.7 2002/03/05 14:17:16 simonb Exp $ */ +/* $NetBSD: setjmp.h,v 1.8 2009/08/12 05:12:58 matt Exp $ */ /* * mips/setjmp.h: machine dependent setjmp-related information. @@ -7,10 +7,11 @@ * struct sigcontext to restore it. */ -#include <machine/cdefs.h> /* for API selection */ - -#if !defined(_MIPS_BSD_API) || _MIPS_BSD_API == _MIPS_BSD_API_LP32 -#define _JBLEN 87 /* XXX Naively 84; 87 for compatibility */ -#else -#define _JBLEN 120 +#if defined(__mips_n32) || (defined(_MIPS_SIM) && _MIPS_SIM == _ABIN32) +/* + * With the N32 ABI, registers have 64 bits + */ +#define _BSD_JBSLOT_T_ long long #endif + +#define _JBLEN 87 /* XXX Naively 84; 87 for compatibility */ |
