mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 19:33:23 +00:00
Rewrite trap/gdt.rs
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e06509e380
commit
8c30b4b942
@ -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.
|
||||
|
Reference in New Issue
Block a user