Initialize local APICs on every processors

This commit is contained in:
Zhang Junyang
2024-08-30 15:53:16 +08:00
committed by Tate, Hongliang Tian
parent 425027677b
commit 326ec09169
6 changed files with 43 additions and 20 deletions

View File

@ -123,6 +123,13 @@ fn ap_early_entry(local_apic_id: u32) -> ! {
unsafe {
trapframe::init();
}
// SAFETY: this function is only called once on this AP, after the BSP has
// done the architecture-specific initialization.
unsafe {
crate::arch::init_on_ap();
}
crate::arch::irq::enable_local();
// SAFETY: this function is only called once on this AP.