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() {
|
pub(crate) unsafe fn late_init_on_bsp() {
|
||||||
// SAFETY: this function is only called once on BSP.
|
// SAFETY: this function is only called once on BSP.
|
||||||
unsafe {
|
unsafe {
|
||||||
crate::arch::trap::init(true);
|
trap::init(true);
|
||||||
}
|
}
|
||||||
irq::init();
|
irq::init();
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ unsafe fn init() {
|
|||||||
|
|
||||||
mm::kspace::init_kernel_page_table(meta_pages);
|
mm::kspace::init_kernel_page_table(meta_pages);
|
||||||
|
|
||||||
crate::sync::init();
|
sync::init();
|
||||||
|
|
||||||
boot::init_after_heap();
|
boot::init_after_heap();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user