Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/include make sure mcontext is large enough...



details:   https://anonhg.NetBSD.org/src/rev/01eeca945728
branches:  trunk
changeset: 768268:01eeca945728
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Aug 13 14:51:58 2011 +0000

description:
make sure mcontext is large enough to store the host mcontext; fixes
strange crashes seen in pool_init

diffstat:

 sys/arch/usermode/include/mcontext.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 580f781e96f6 -r 01eeca945728 sys/arch/usermode/include/mcontext.h
--- a/sys/arch/usermode/include/mcontext.h      Sat Aug 13 14:11:16 2011 +0000
+++ b/sys/arch/usermode/include/mcontext.h      Sat Aug 13 14:51:58 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 */



Home | Main Index | Thread Index | Old Index