diff options
author | 2001-11-06 18:41:09 +0000 | |
---|---|---|
committer | 2001-11-06 18:41:09 +0000 | |
commit | 1359e66cac17161a0340876a35cefdf01fe6f0a9 (patch) | |
tree | beef7a915dd004044e12159969cc63fedac994f0 /sys/compat/linux/linux_sched.c | |
parent | Since the header of the file map is Start End, (diff) | |
download | wireguard-openbsd-1359e66cac17161a0340876a35cefdf01fe6f0a9.tar.xz wireguard-openbsd-1359e66cac17161a0340876a35cefdf01fe6f0a9.zip |
Let fork1, uvm_fork, and cpu_fork take a function/argument pair as argument,
instead of doing fork1, cpu_set_kpc. This lets us retire cpu_set_kpc and
avoid a multiprocessor race.
This commit breaks vax because it doesn't look like any other arch, someone
working on vax might want to look at this and try to adapt the code to be
more like the rest of the world.
Idea and uvm parts from NetBSD.
Diffstat (limited to 'sys/compat/linux/linux_sched.c')
-rw-r--r-- | sys/compat/linux/linux_sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_sched.c b/sys/compat/linux/linux_sched.c index 7b0e050a011..4d47196b37f 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.2 2001/05/15 09:34:44 jasoni Exp $ */ +/* $OpenBSD: linux_sched.c,v 1.3 2001/11/06 18:41:10 art Exp $ */ /* $NetBSD: linux_sched.c,v 1.6 2000/05/28 05:49:05 thorpej Exp $ */ /*- @@ -96,7 +96,7 @@ 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, retval)); + return (fork1(p, sig, flags, SCARG(uap, stack), 0, NULL, NULL, retval)); } int |