summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1999-04-29 22:51:59 +0000
committerdt <dt@FreeBSD.org>1999-04-29 22:51:59 +0000
commitb1fc5e056c1db54d1b2892c45d41d63df6317815 (patch)
tree511e3b864be53ec74a7b770b1b564674dec78874 /sys/kern/init_main.c
parenta80f97ecbeac88ff9b7b99755f5c7e6869863c18 (diff)
downloadFreeBSD-src-b1fc5e056c1db54d1b2892c45d41d63df6317815.zip
FreeBSD-src-b1fc5e056c1db54d1b2892c45d41d63df6317815.tar.gz
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
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index ed93f6f..777dba1 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)
OpenPOWER on IntegriCloud