Move initialization of `proc0.p_addr' from cpu_startup() to bootstrap().
This commit is contained in:
parent
81f498a32b
commit
437796f42a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: autoconf.c,v 1.89 1998/03/30 14:15:57 pk Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.90 1998/04/01 14:03:26 pk Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
@ -178,6 +178,7 @@ struct om_vector *oldpvec = (struct om_vector *)PROM_BASE;
|
||||
void
|
||||
bootstrap()
|
||||
{
|
||||
extern struct user *proc0paddr;
|
||||
|
||||
#if defined(SUN4)
|
||||
if (CPU_ISSUN4) {
|
||||
@ -213,6 +214,9 @@ bootstrap()
|
||||
}
|
||||
#endif /* SUN4 */
|
||||
|
||||
/* Attach user structure to proc0 */
|
||||
proc0.p_addr = proc0paddr;
|
||||
|
||||
bzero(&cpuinfo, sizeof(struct cpu_softc));
|
||||
cpuinfo.master = 1;
|
||||
getcpuinfo(&cpuinfo, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.110 1998/03/29 21:56:32 pk Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.111 1998/04/01 14:03:26 pk Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -220,8 +220,6 @@ cpu_startup()
|
||||
*/
|
||||
initmsgbuf((caddr_t)(MSGBUF_VA + (CPU_ISSUN4 ? 4096 : 0)), MSGBUFSIZE);
|
||||
|
||||
proc0.p_addr = proc0paddr;
|
||||
|
||||
/*
|
||||
* Good {morning,afternoon,evening,night}.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user