diff options
author | imp <imp@FreeBSD.org> | 2010-03-02 07:27:30 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-03-02 07:27:30 +0000 |
commit | 090d85f3f59076a047985e5b6ecf975a1c2b4a26 (patch) | |
tree | 31eb3baa2afb2f12b479905b83abad5f3dc35a53 /sys/mips/include/ucontext.h | |
parent | c6aa3ac44645e36e9cc1e29aa598a706779c2c29 (diff) | |
download | FreeBSD-src-090d85f3f59076a047985e5b6ecf975a1c2b4a26.zip FreeBSD-src-090d85f3f59076a047985e5b6ecf975a1c2b4a26.tar.gz |
Update macros for multiple ABI support from NetBSD.
Also update SZREG define in ucontext
Diffstat (limited to 'sys/mips/include/ucontext.h')
-rw-r--r-- | sys/mips/include/ucontext.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/mips/include/ucontext.h b/sys/mips/include/ucontext.h index c360a65..7d4c2e4 100644 --- a/sys/mips/include/ucontext.h +++ b/sys/mips/include/ucontext.h @@ -58,10 +58,12 @@ typedef struct __mcontext { } mcontext_t; #endif -#if defined(__mips_n64) || defined(__mips_n32) -#define SZREG 8 +#ifndef SZREG +#if defined(__mips_o32) +#define SZREG 4 #else -#define SZREG 4 +#define SZREG 8 +#endif #endif /* offsets into mcontext_t */ |