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.
This commit is contained in:
parent
be26ac6354
commit
2cf8f50c40
@ -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 <reinoud@NetBSD.org>
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user