Module Name: src
Committed By: jmcneill
Date: Sat Aug 13 14:51:58 UTC 2011
Modified Files:
src/sys/arch/usermode/include: mcontext.h
Log Message:
make sure mcontext is large enough to store the host mcontext; fixes
strange crashes seen in pool_init
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/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/usermode/include/mcontext.h
diff -u src/sys/arch/usermode/include/mcontext.h:1.2 src/sys/arch/usermode/include/mcontext.h:1.3
--- src/sys/arch/usermode/include/mcontext.h:1.2 Wed Oct 21 16:06:59 2009
+++ src/sys/arch/usermode/include/mcontext.h Sat Aug 13 14:51:58 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: mcontext.h,v 1.2 2009/10/21 16:06:59 snj Exp $ */
+/* $NetBSD: mcontext.h,v 1.3 2011/08/13 14:51:58 jmcneill Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <[email protected]>
@@ -29,10 +29,14 @@
#ifndef _ARCH_USERMODE_INCLUDE_MCONTEXT_H
#define _ARCH_USERMODE_INCLUDE_MCONTEXT_H
+#include <machine/vmparam.h>
+
typedef struct {
+ uint8_t __unknown[PAGE_SIZE];
} mcontext_t;
typedef struct {
+ uint8_t __unknown[PAGE_SIZE];
} mcontext32_t;
#endif /* !_ARCH_USERMODE_INCLUDE_MCONTEXT_H */