Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/riscv/mp_machdep.c
Show First 20 Lines • Show All 285 Lines • ▼ Show 20 Lines | #endif | ||||
mtx_unlock_spin(&ap_boot_mtx); | mtx_unlock_spin(&ap_boot_mtx); | ||||
/* | /* | ||||
* Assert that smp_after_idle_runnable condition is reasonable. | * Assert that smp_after_idle_runnable condition is reasonable. | ||||
*/ | */ | ||||
MPASS(PCPU_GET(curpcb) == NULL); | MPASS(PCPU_GET(curpcb) == NULL); | ||||
/* Enter the scheduler */ | /* Enter the scheduler */ | ||||
sched_throw(NULL); | sched_ap_entry(); | ||||
panic("scheduler returned us to init_secondary"); | panic("scheduler returned us to init_secondary"); | ||||
/* NOTREACHED */ | /* NOTREACHED */ | ||||
} | } | ||||
static void | static void | ||||
smp_after_idle_runnable(void *arg __unused) | smp_after_idle_runnable(void *arg __unused) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines |