Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/mp_machdep.c
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | #endif | ||||
set_curthread(pc->pc_idlethread); | set_curthread(pc->pc_idlethread); | ||||
#ifdef VFP | #ifdef VFP | ||||
vfp_init(); | vfp_init(); | ||||
#endif | #endif | ||||
/* Configure the interrupt controller */ | /* Configure the interrupt controller */ | ||||
intr_pic_init_secondary(); | intr_pic_init_secondary(); | ||||
/* Apply possible BP hardening */ | |||||
cpuinfo_init_bp_hardening(); | |||||
mtx_lock_spin(&ap_boot_mtx); | mtx_lock_spin(&ap_boot_mtx); | ||||
atomic_add_rel_32(&smp_cpus, 1); | atomic_add_rel_32(&smp_cpus, 1); | ||||
if (smp_cpus == mp_ncpus) { | if (smp_cpus == mp_ncpus) { | ||||
/* enable IPI's, tlb shootdown, freezes etc */ | /* enable IPI's, tlb shootdown, freezes etc */ | ||||
atomic_store_rel_int(&smp_started, 1); | atomic_store_rel_int(&smp_started, 1); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines |