Index: luna88k/machdep.c =================================================================== RCS file: /cvs/src/sys/arch/luna88k/luna88k/machdep.c,v retrieving revision 1.121 diff -u -p -r1.121 machdep.c --- luna88k/machdep.c 9 Oct 2016 11:25:40 -0000 1.121 +++ luna88k/machdep.c 27 Oct 2016 06:40:55 -0000 @@ -679,8 +679,10 @@ cpu_setup_secondary_processors() * Allocation failure will be checked by the secondary processors * so that we can still run in degraded mode if hell gets loose. */ - for (cpu = 0; cpu < hatch_pending_count; cpu++) + for (cpu = 0; cpu < hatch_pending_count; cpu++) { hatch_stacks[cpu] = uvm_km_zalloc(kernel_map, USPACE); + ncpus++; + } #endif __cpu_simple_unlock(&cpu_hatch_mutex); @@ -765,7 +767,6 @@ secondary_main() int s; cpu_configuration_print(0); - ncpus++; sched_init_cpu(ci); nanouptime(&ci->ci_schedstate.spc_runtime);