mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Inject a scalable slab allocator
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fdbe52c2ee
commit
a708a0c046
@ -47,7 +47,10 @@ mod util;
|
||||
|
||||
use core::sync::atomic::{AtomicBool, Ordering};
|
||||
|
||||
pub use ostd_macros::{global_frame_allocator, main, panic_handler};
|
||||
pub use ostd_macros::{
|
||||
global_frame_allocator, global_heap_allocator, global_heap_allocator_slot_type_map, main,
|
||||
panic_handler,
|
||||
};
|
||||
pub use ostd_pod::Pod;
|
||||
|
||||
pub use self::{error::Error, prelude::Result};
|
||||
@ -98,9 +101,6 @@ unsafe fn init() {
|
||||
|
||||
mm::kspace::init_kernel_page_table(meta_pages);
|
||||
|
||||
// SAFETY: This function is called only once and only on the BSP.
|
||||
unsafe { mm::heap_allocator::init() };
|
||||
|
||||
crate::sync::init();
|
||||
|
||||
boot::init_after_heap();
|
||||
|
Reference in New Issue
Block a user