summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-11-23 19:08:56 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-11-23 19:08:56 +0000
commit17ea3d00ad6ab51534668f0fa412c36101fa7229 (patch)
treeeb0194f91fff140acba852d73e1785ae62e67581 /sys/compat/linux
parent6506a735d9eb4cb6f15cdff9ad2e4fff2e0e8bdb (diff)
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')
-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