From 89ae7820c1a454d61cd281925d300bf324cfb4a3 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Tue, 6 Nov 2001 18:41:11 +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/netbsd/netbsd_misc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/compat/netbsd/netbsd_misc.c') diff --git a/sys/compat/netbsd/netbsd_misc.c b/sys/compat/netbsd/netbsd_misc.c index d6c22b6aa68..3489e366a8e 100644 --- a/sys/compat/netbsd/netbsd_misc.c +++ b/sys/compat/netbsd/netbsd_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_misc.c,v 1.11 2001/04/03 20:37:16 niklas Exp $ */ +/* $OpenBSD: netbsd_misc.c,v 1.12 2001/11/06 18:41:10 art Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1991, 1993 @@ -60,7 +60,8 @@ netbsd_sys___vfork14(p, v, retval) void *v; register_t *retval; { - return (fork1(p, SIGCHLD, FORK_PPWAIT|FORK_SHAREVM, NULL, 0, retval)); + return (fork1(p, SIGCHLD, FORK_PPWAIT|FORK_SHAREVM, NULL, 0, NULL, + NULL, retval)); } /* XXX syncs whole file */ -- cgit v1.2.3