diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/cpu.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/arch/i386/i386/cpu.c b/sys/arch/i386/i386/cpu.c index c029afa64aa..866f8beb4e3 100644 --- a/sys/arch/i386/i386/cpu.c +++ b/sys/arch/i386/i386/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.8 2004/06/24 19:35:23 tholo Exp $ */ +/* $OpenBSD: cpu.c,v 1.9 2004/06/27 23:59:00 deraadt Exp $ */ /* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */ /*- @@ -403,7 +403,8 @@ cpu_boot_secondary (ci) struct pmap *kpm = pmap_kernel(); extern u_int32_t mp_pdirpa; - printf("%s: starting", ci->ci_dev.dv_xname); + if (mp_verbose) + printf("%s: starting", ci->ci_dev.dv_xname); /* XXX move elsewhere, not per CPU. */ mp_pdirpa = vtophys(kpm->pm_pdir); @@ -411,9 +412,7 @@ cpu_boot_secondary (ci) pcb = ci->ci_idle_pcb; if (mp_verbose) - printf(", init idle stack ptr is 0x%x", pcb->pcb_esp); - - printf("\n"); + printf(", init idle stack ptr is 0x%x\n", pcb->pcb_esp); CPU_STARTUP(ci); @@ -424,7 +423,7 @@ cpu_boot_secondary (ci) delay(10); } if (!(ci->ci_flags & CPUF_RUNNING)) { - printf("cpu failed to become ready\n"); + printf("%s failed to become ready\n", ci->ci_dev.dv_xname); #ifdef DDB Debugger(); #endif @@ -458,7 +457,9 @@ cpu_hatch(void *v) s = splhigh(); /* XXX prevent softints from running here.. */ lapic_tpr = 0; enable_intr(); - printf("%s: CPU at apid %ld running\n", ci->ci_dev.dv_xname, ci->ci_cpuid); + if (mp_verbose) + printf("%s: CPU at apid %ld running\n", + ci->ci_dev.dv_xname, ci->ci_cpuid); microuptime(&ci->ci_schedstate.spc_runtime); splx(s); } |