mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 17:03:23 +00:00
Initialize local APICs on every processors
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
425027677b
commit
326ec09169
@ -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.
|
||||
|
Reference in New Issue
Block a user