Rewrite trap/gdt.rs

This commit is contained in:
Ruihan Li
2025-04-17 23:29:08 +08:00
committed by Tate, Hongliang Tian
parent e06509e380
commit 8c30b4b942
10 changed files with 134 additions and 110 deletions

View File

@ -23,8 +23,8 @@ pub(crate) fn init_cvm_guest() {
}
pub(crate) unsafe fn late_init_on_bsp() {
// SAFETY: This function is only called once on BSP.
unsafe { trap::init(true) };
// 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.