diff options
author | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-04-29 22:51:59 +0000 |
---|---|---|
committer | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-04-29 22:51:59 +0000 |
commit | 188554bba19c70443fec5ad2fa5b72d75e590a00 (patch) | |
tree | 1d17bf310fe2081953f4f40b3df62ee0c7a667d8 /sys/kern/init_main.c | |
parent | 1e1d43cd381a1df48c3a60c432a920d7ce349695 (diff) | |
download | src-188554bba19c70443fec5ad2fa5b72d75e590a00.tar.gz src-188554bba19c70443fec5ad2fa5b72d75e590a00.zip |
Set curproc at the end of proc0_init().
This patch also moves the bogus comment (the comment is still not quite
right) and (as a side effect) removes some verbose initialisations (we
depend on static initialisation to 0 for almost everything in proc0).
The alpha kernels are bootable again. The change won't affect i386's
until machdep.c is changed.
Submitted by: bde
Notes
Notes:
svn path=/head/; revision=46192
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index ed93f6f5647b..777dba170f1e 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.114 1999/04/28 01:04:25 luoqi Exp $ + * $Id: init_main.c,v 1.115 1999/04/28 11:36:50 phk Exp $ */ #include "opt_devfs.h" @@ -353,10 +353,6 @@ proc0_init(dummy) register struct filedesc0 *fdp; register unsigned i; - /* - * Initialize the current process pointer (curproc) before - * any possible traps/probes to simplify trap processing. - */ p = &proc0; /* @@ -474,9 +470,10 @@ proc0_init(dummy) (void)chgproccnt(0, 1); /* - * Initialize the procfs flags (to 0, of course) + * Initialize the current process pointer (curproc) before + * any possible traps/probes to simplify trap processing. */ - p->p_stops = p->p_stype = p->p_step = 0; + SET_CURPROC(p); } SYSINIT(p0init, SI_SUB_INTRINSIC, SI_ORDER_FIRST, proc0_init, NULL) |