From 1359e66cac17161a0340876a35cefdf01fe6f0a9 Mon Sep 17 00:00:00 2001 From: art Date: Tue, 6 Nov 2001 18:41:09 +0000 Subject: 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. --- sys/compat/linux/linux_sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/compat/linux/linux_sched.c') 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 -- cgit v1.2.3-59-g8ed1b