rCore-Tutorial-v3/os/src/mm/mod.rs

12 lines
271 B
Rust
Raw Normal View History

mod heap_allocator;
2020-12-03 06:40:30 +04:00
mod address;
mod frame_allocator;
2020-12-03 06:40:30 +04:00
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();
}