Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/include Add __UCONTEXT*_SIZE*



details:   https://anonhg.NetBSD.org/src/rev/f9c54a1b610f
branches:  trunk
changeset: 762566:f9c54a1b610f
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Feb 23 07:47:09 2011 +0000

description:
Add __UCONTEXT*_SIZE*

diffstat:

 sys/arch/mips/include/mcontext.h |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 8cde79ead253 -r f9c54a1b610f sys/arch/mips/include/mcontext.h
--- a/sys/arch/mips/include/mcontext.h  Wed Feb 23 07:03:50 2011 +0000
+++ b/sys/arch/mips/include/mcontext.h  Wed Feb 23 07:47:09 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcontext.h,v 1.12 2011/02/20 07:45:47 matt Exp $       */
+/*     $NetBSD: mcontext.h,v 1.13 2011/02/23 07:47:09 matt Exp $       */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -162,4 +162,19 @@
 
 #define        _UC_MACHINE32_SET_PC(uc, pc)    _UC_MACHINE_PC((uc), (pc))
 
+#define        __UCONTEXT_SIZE_O32     (40 + 288 +  64)        /* 392 */
+#define        __UCONTEXT_SIZE_N32     (40 + 560 +  64)        /* 664 */
+#define        __UCONTEXT_SIZE_N64     (56 + 560 + 128)        /* 774 */
+
+#ifdef __mips_o32
+#define        __UCONTEXT_SIZE         __UCONTEXT_SIZE_O32
+#elif __mips_n32
+#define        __UCONTEXT_SIZE         __UCONTEXT_SIZE_N32
+#elif __mips_n64
+#define        __UCONTEXT_SIZE         __UCONTEXT_SIZE_N64
+#define        __UCONTEXT32_SIZE       __UCONTEXT_SIZE_N32
+#elif
+#error O64 is not supported
+#endif
+
 #endif /* _MIPS_MCONTEXT_H_ */



Home | Main Index | Thread Index | Old Index