Revise safety comments for booting APs

This commit is contained in:
Ruihan Li
2025-01-01 13:45:04 +08:00
committed by Tate, Hongliang Tian
parent d7fbdbfc63
commit b52d841ac1
4 changed files with 104 additions and 44 deletions

View File

@ -29,7 +29,8 @@ pub(crate) unsafe fn late_init_on_bsp() {
}
irq::init();
crate::boot::smp::boot_all_aps();
// SAFETY: we're on the BSP and we're ready to boot all APs.
unsafe { crate::boot::smp::boot_all_aps() };
timer::init();
let _ = pci::init();