rcore-tutorial/os/src/mm/mod.rs
2020-12-03 10:40:30 +08:00

11 lines
271 B
Rust

mod heap_allocator;
mod address;
mod frame_allocator;
pub use address::{PhysAddr, VirtAddr, PhysPageNum, VirtPageNum};
pub use frame_allocator::{FrameTracker, frame_alloc};
pub fn init() {
heap_allocator::init_heap();
frame_allocator::init_frame_allocator();
}