Call find_cpus() much earlier so we can use the result while bootstrapping
all that pmap stuff.
This commit is contained in:
parent
de22be977a
commit
8800f180c3
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.124 1999/09/30 23:01:53 thorpej Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.125 1999/10/04 19:27:04 pk Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -145,7 +145,7 @@ find_cpus()
|
|||
|
||||
/* We only consider sun4m class multi-processor machines */
|
||||
if (!CPU_ISSUN4M)
|
||||
return (0);
|
||||
return (1);
|
||||
|
||||
n = 0;
|
||||
node = findroot();
|
||||
|
@ -202,6 +202,9 @@ bootstrap()
|
|||
#endif
|
||||
prom_init();
|
||||
|
||||
/* Find the number of CPUs as early as possible */
|
||||
ncpu = find_cpus();
|
||||
|
||||
/* Attach user structure to proc0 */
|
||||
proc0.p_addr = proc0paddr;
|
||||
|
||||
|
@ -800,8 +803,6 @@ cpu_configure()
|
|||
}
|
||||
#endif
|
||||
|
||||
ncpu = find_cpus();
|
||||
|
||||
prom_setcallback(sync_crash);
|
||||
|
||||
/* Enable device interrupts */
|
||||
|
|
Loading…
Reference in New Issue