diff options
author | peter <peter@FreeBSD.org> | 1999-07-01 13:21:46 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-07-01 13:21:46 +0000 |
commit | 6cb5fe6c6bfe3fbe7878f6c055e0deb2ad86d77c (patch) | |
tree | 3d833b579e08cb5e2dc4561ebb531129df5f2eb3 /sys/powerpc | |
parent | e671ad02ffd3e5dedda4576976c1952f1f8d8fe3 (diff) | |
download | FreeBSD-src-6cb5fe6c6bfe3fbe7878f6c055e0deb2ad86d77c.zip FreeBSD-src-6cb5fe6c6bfe3fbe7878f6c055e0deb2ad86d77c.tar.gz |
Slight reorganization of kernel thread/process creation. Instead of using
SYSINIT_KT() etc (which is a static, compile-time procedure), use a
NetBSD-style kthread_create() interface. kproc_start is still available
as a SYSINIT() hook. This allowed simplification of chunks of the
sysinit code in the process. This kthread_create() is our old kproc_start
internals, with the SYSINIT_KT fork hooks grafted in and tweaked to work
the same as the NetBSD one.
One thing I'd like to do shortly is get rid of nfsiod as a user initiated
process. It makes sense for the nfs client code to create them on the
fly as needed up to a user settable limit. This means that nfsiod
doesn't need to be in /sbin and is always "available". This is a fair bit
easier to do outside of the SYSINIT_KT() framework.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/vm_machdep.c | 6 | ||||
-rw-r--r-- | sys/powerpc/powerpc/vm_machdep.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c index a638794..4abdd94 100644 --- a/sys/powerpc/aim/vm_machdep.c +++ b/sys/powerpc/aim/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.15 1999/06/08 16:42:19 dt Exp $ + * $Id: vm_machdep.c,v 1.16 1999/06/10 20:40:59 dt Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -218,8 +218,8 @@ cpu_fork(p1, p2) void cpu_set_fork_handler(p, func, arg) struct proc *p; - void (*func) __P((const void *)); - const void *arg; + void (*func) __P((void *)); + void *arg; { /* * Note that the trap frame follows the args, so the function diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index a638794..4abdd94 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.15 1999/06/08 16:42:19 dt Exp $ + * $Id: vm_machdep.c,v 1.16 1999/06/10 20:40:59 dt Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -218,8 +218,8 @@ cpu_fork(p1, p2) void cpu_set_fork_handler(p, func, arg) struct proc *p; - void (*func) __P((const void *)); - const void *arg; + void (*func) __P((void *)); + void *arg; { /* * Note that the trap frame follows the args, so the function |