Pull code from arch/*/irq.rs to trap/irq.rs

This commit is contained in:
Ruihan Li
2025-05-23 23:18:54 +08:00
committed by Junyang Zhang
parent dd9fc81a81
commit 758c80c321
6 changed files with 229 additions and 330 deletions

View File

@ -25,7 +25,6 @@ pub(crate) fn init_cvm_guest() {
pub(crate) unsafe fn late_init_on_bsp() {
// SAFETY: This function is called in the boot context of the BSP.
unsafe { trap::init() };
irq::init();
// SAFETY: We're on the BSP and we're ready to boot all APs.
unsafe { crate::boot::smp::boot_all_aps() };