Module Name: src
Committed By: reinoud
Date: Wed Dec 14 17:06:28 UTC 2011
Modified Files:
src/sys/arch/usermode/usermode: pmap.c
Log Message:
OK, this is a temporary patch so usermode can run on 5.1 or old 5.99's. The
workaround mentioned here is not needed on newer 5.99 since it has just been
patched.
To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/usermode/usermode/pmap.c
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/usermode/pmap.c
diff -u src/sys/arch/usermode/usermode/pmap.c:1.78 src/sys/arch/usermode/usermode/pmap.c:1.79
--- src/sys/arch/usermode/usermode/pmap.c:1.78 Wed Dec 14 12:29:59 2011
+++ src/sys/arch/usermode/usermode/pmap.c Wed Dec 14 17:06:28 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.78 2011/12/14 12:29:59 jmcneill Exp $ */
+/* $NetBSD: pmap.c,v 1.79 2011/12/14 17:06:28 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.78 2011/12/14 12:29:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.79 2011/12/14 17:06:28 reinoud Exp $");
#include "opt_memsize.h"
#include "opt_kmempages.h"
@@ -370,7 +370,12 @@ pmap_bootstrap(void)
void
pmap_init(void)
{
- /* ensure signal stack is setup after urkelvisor fork */
+ /*
+ * XXX Work around a NetBSD fork() bug that doesn't copy the alternate
+ * signal stack to the child! so ensure signal stack is setup after
+ * urkelvisor fork
+ */
+
thunk_sigaltstack(usermode_signal_stack(), NULL);
}