Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode only need to setup altstack after fork, no...
details: https://anonhg.NetBSD.org/src/rev/7d9f8a56ff8f
branches: trunk
changeset: 772024:7d9f8a56ff8f
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Dec 14 12:29:59 2011 +0000
description:
only need to setup altstack after fork, not in lwp tramp
diffstat:
sys/arch/usermode/dev/cpu.c | 5 ++---
sys/arch/usermode/usermode/pmap.c | 8 +++++---
2 files changed, 7 insertions(+), 6 deletions(-)
diffs (62 lines):
diff -r b3d68746d3a2 -r 7d9f8a56ff8f sys/arch/usermode/dev/cpu.c
--- a/sys/arch/usermode/dev/cpu.c Wed Dec 14 07:20:31 2011 +0000
+++ b/sys/arch/usermode/dev/cpu.c Wed Dec 14 12:29:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.51 2011/12/14 04:12:22 jmcneill Exp $ */
+/* $NetBSD: cpu.c,v 1.52 2011/12/14 12:29:59 jmcneill Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
#include "opt_hz.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.51 2011/12/14 04:12:22 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.52 2011/12/14 12:29:59 jmcneill Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -302,7 +302,6 @@
/* actual jump */
thunk_makecontext(ucp, (void (*)(void)) func, 1, arg, NULL, NULL);
- thunk_sigaltstack(usermode_signal_stack(), NULL);
thunk_setcontext(ucp);
}
diff -r b3d68746d3a2 -r 7d9f8a56ff8f sys/arch/usermode/usermode/pmap.c
--- a/sys/arch/usermode/usermode/pmap.c Wed Dec 14 07:20:31 2011 +0000
+++ b/sys/arch/usermode/usermode/pmap.c Wed Dec 14 12:29:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.77 2011/12/13 15:43:55 reinoud Exp $ */
+/* $NetBSD: pmap.c,v 1.78 2011/12/14 12:29:59 jmcneill Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <reinoud%NetBSD.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.77 2011/12/13 15:43:55 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.78 2011/12/14 12:29:59 jmcneill Exp $");
#include "opt_memsize.h"
#include "opt_kmempages.h"
@@ -39,6 +39,7 @@
#include <sys/malloc.h>
#include <sys/pool.h>
#include <machine/thunk.h>
+#include <machine/machdep.h>
#include <uvm/uvm.h>
@@ -369,7 +370,8 @@
void
pmap_init(void)
{
- /* All deferred to pmap_create, because malloc() is nice. */
+ /* ensure signal stack is setup after urkelvisor fork */
+ thunk_sigaltstack(usermode_signal_stack(), NULL);
}
/* return kernel space start and end (including growth) */
Home |
Main Index |
Thread Index |
Old Index