diff options
author | peter <peter@FreeBSD.org> | 1998-04-06 15:51:22 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-04-06 15:51:22 +0000 |
commit | 6e3ec235ff85715b4f3346989bae94f7e0aaacfe (patch) | |
tree | 58979380680044fcb292e0d8879922ec982481b1 /sys/kern/init_main.c | |
parent | 93c5e9e460b10ea9a669e8dd807415ba73819d7e (diff) | |
download | FreeBSD-src-6e3ec235ff85715b4f3346989bae94f7e0aaacfe.zip FreeBSD-src-6e3ec235ff85715b4f3346989bae94f7e0aaacfe.tar.gz |
curproc is initialized in locore at the same time for both SMP and UP now.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index d4bb6d1..e9f0610 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * @(#)init_main.c 8.9 (Berkeley) 1/21/94 - * $Id: init_main.c,v 1.85 1998/03/30 09:49:52 phk Exp $ + * $Id: init_main.c,v 1.86 1998/04/04 13:25:08 phk Exp $ */ #include "opt_devfs.h" @@ -85,9 +85,6 @@ static struct pcred cred0; static struct filedesc0 filedesc0; static struct plimit limit0; static struct vmspace vmspace0; -#ifndef SMP /* per-cpu on smp */ -struct proc *curproc = &proc0; -#endif struct proc *initproc; int cmask = CMASK; @@ -152,17 +149,6 @@ main(framep) */ init_framep = framep; -#ifdef SMP - /* - * XXX curproc is per-cpu in SMP, and exists in freshly mapped pages, - * so its value must be initialized now before it is used by various - * initialization routines. proc0_init() isn't soon enough: - * among other things, configure() is called first, and may call - * setdumpdev(), which panics without a valid curproc. - */ - curproc = &proc0; -#endif /* SMP */ - /* * Perform a bubble sort of the system initialization objects by * their subsystem (primary key) and order (secondary key). |