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
This commit is contained in:
parent
a80f97ecbe
commit
b1fc5e056c
@ -39,7 +39,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
|
* @(#)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"
|
#include "opt_devfs.h"
|
||||||
@ -353,10 +353,6 @@ proc0_init(dummy)
|
|||||||
register struct filedesc0 *fdp;
|
register struct filedesc0 *fdp;
|
||||||
register unsigned i;
|
register unsigned i;
|
||||||
|
|
||||||
/*
|
|
||||||
* Initialize the current process pointer (curproc) before
|
|
||||||
* any possible traps/probes to simplify trap processing.
|
|
||||||
*/
|
|
||||||
p = &proc0;
|
p = &proc0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -474,9 +470,10 @@ proc0_init(dummy)
|
|||||||
(void)chgproccnt(0, 1);
|
(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)
|
SYSINIT(p0init, SI_SUB_INTRINSIC, SI_ORDER_FIRST, proc0_init, NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user