Module Name:    src
Committed By:   matt
Date:           Wed Feb 23 07:47:10 UTC 2011

Modified Files:
        src/sys/arch/mips/include: mcontext.h

Log Message:
Add __UCONTEXT*_SIZE*


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/mips/include/mcontext.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/include/mcontext.h
diff -u src/sys/arch/mips/include/mcontext.h:1.12 src/sys/arch/mips/include/mcontext.h:1.13
--- src/sys/arch/mips/include/mcontext.h:1.12	Sun Feb 20 07:45:47 2011
+++ src/sys/arch/mips/include/mcontext.h	Wed Feb 23 07:47:09 2011
@@ -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_ */

Reply via email to