Module Name:    src
Committed By:   matt
Date:           Fri Feb 28 05:27:05 UTC 2014

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

Log Message:
Add mcontext32_t


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/powerpc/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/powerpc/include/mcontext.h
diff -u src/sys/arch/powerpc/include/mcontext.h:1.14 src/sys/arch/powerpc/include/mcontext.h:1.15
--- src/sys/arch/powerpc/include/mcontext.h:1.14	Tue Sep 11 00:15:19 2012
+++ src/sys/arch/powerpc/include/mcontext.h	Fri Feb 28 05:27:05 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: mcontext.h,v 1.14 2012/09/11 00:15:19 matt Exp $	*/
+/*	$NetBSD: mcontext.h,v 1.15 2014/02/28 05:27:05 matt Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -112,6 +112,17 @@ typedef struct {
 	__vrf_t		__vrf;		/* Vector Register File */
 } mcontext_t;
 
+#if defined(_LP64)
+typedef	int		__greg32_t;
+typedef	__greg32_t	__gregset32_t[_NGREG];
+
+typedef struct {
+	__gregset32_t	__gregs;	/* General Purpose Register set */
+	__fpregset_t	__fpregs;	/* Floating Point Register set */
+	__vrf_t		__vrf;		/* Vector Register File */
+} mcontext32_t;
+#endif
+
 /* Machine-dependent uc_flags */
 #define	_UC_POWERPC_VEC	0x00010000	/* Vector Register File valid */
 #define	_UC_POWERPC_SPE	0x00020000	/* Vector Register File valid */

Reply via email to