Slightly nicer boot print.

This commit is contained in:
Geoffrey Challen 2016-02-17 07:53:47 -05:00
parent 6c55193a58
commit 0eaa519f23

View File

@ -434,7 +434,11 @@ thread_start_cpus(void)
P(cpu_startup_sem); P(cpu_startup_sem);
} }
sem_destroy(cpu_startup_sem); sem_destroy(cpu_startup_sem);
kprintf("%d cpus online\n", i + 1); if (i == 0) {
kprintf("1 CPU online\n");
} else {
kprintf("%d CPUs online\n", i + 1);
}
cpu_startup_sem = NULL; cpu_startup_sem = NULL;
} }