summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/ucontext.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-03-02 07:27:30 +0000
committerimp <imp@FreeBSD.org>2010-03-02 07:27:30 +0000
commit090d85f3f59076a047985e5b6ecf975a1c2b4a26 (patch)
tree31eb3baa2afb2f12b479905b83abad5f3dc35a53 /sys/mips/include/ucontext.h
parentc6aa3ac44645e36e9cc1e29aa598a706779c2c29 (diff)
downloadFreeBSD-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.h8
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 */
OpenPOWER on IntegriCloud