summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_sched.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-11-23 19:08:52 +0000
committermiod <miod@openbsd.org>2004-11-23 19:08:52 +0000
commit240d2236f811b7e984e86e20a9440443c13d6a1d (patch)
tree1ea05aa989f00b03b0e9838d68df71bd97532a7e /sys/compat/linux/linux_sched.c
parentsync (diff)
downloadwireguard-openbsd-240d2236f811b7e984e86e20a9440443c13d6a1d.tar.xz
wireguard-openbsd-240d2236f811b7e984e86e20a9440443c13d6a1d.zip
Create the init process earlier, before the root filesystem is mounted,
and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
Diffstat (limited to 'sys/compat/linux/linux_sched.c')
-rw-r--r--sys/compat/linux/linux_sched.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_sched.c b/sys/compat/linux/linux_sched.c
index c5b1b008db9..4521fee96e6 100644
--- a/sys/compat/linux/linux_sched.c
+++ b/sys/compat/linux/linux_sched.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_sched.c,v 1.4 2004/06/13 21:49:23 niklas Exp $ */
+/* $OpenBSD: linux_sched.c,v 1.5 2004/11/23 19:08:52 miod Exp $ */
/* $NetBSD: linux_sched.c,v 1.6 2000/05/28 05:49:05 thorpej Exp $ */
/*-
@@ -96,7 +96,8 @@ linux_sys_clone(p, v, retval)
* or down. So, we pass a stack size of 0, so that the code
* that makes this adjustment is a noop.
*/
- return (fork1(p, sig, flags, SCARG(uap, stack), 0, NULL, NULL, retval));
+ return (fork1(p, sig, flags, SCARG(uap, stack), 0, NULL, NULL, retval,
+ NULL));
}
int