mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26:48 +00:00
Clean up code
This commit is contained in:
parent
7ac4fa9519
commit
dd67a9a175
@ -74,7 +74,7 @@ static CPU_FEATURES: Once<FeatureInfo> = Once::new();
|
||||
pub(crate) unsafe fn late_init_on_bsp() {
|
||||
// SAFETY: this function is only called once on BSP.
|
||||
unsafe {
|
||||
crate::arch::trap::init(true);
|
||||
trap::init(true);
|
||||
}
|
||||
irq::init();
|
||||
|
||||
|
@ -99,7 +99,7 @@ unsafe fn init() {
|
||||
|
||||
mm::kspace::init_kernel_page_table(meta_pages);
|
||||
|
||||
crate::sync::init();
|
||||
sync::init();
|
||||
|
||||
boot::init_after_heap();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user