Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mips/mp_machdep.c
Show First 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | |||||
#ifdef PLATFORM_INIT_SECONDARY | #ifdef PLATFORM_INIT_SECONDARY | ||||
platform_init_secondary(cpuid); | platform_init_secondary(cpuid); | ||||
#endif | #endif | ||||
/* Initialize curthread. */ | /* Initialize curthread. */ | ||||
KASSERT(PCPU_GET(idlethread) != NULL, ("no idle thread")); | KASSERT(PCPU_GET(idlethread) != NULL, ("no idle thread")); | ||||
PCPU_SET(curthread, PCPU_GET(idlethread)); | PCPU_SET(curthread, PCPU_GET(idlethread)); | ||||
schedinit_ap(); | |||||
mtx_lock_spin(&ap_boot_mtx); | mtx_lock_spin(&ap_boot_mtx); | ||||
smp_cpus++; | smp_cpus++; | ||||
CTR1(KTR_SMP, "SMP: AP CPU #%d launched", PCPU_GET(cpuid)); | CTR1(KTR_SMP, "SMP: AP CPU #%d launched", PCPU_GET(cpuid)); | ||||
if (bootverbose) | if (bootverbose) | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |