Frame Allocator OK.

This commit is contained in:
Yifan Wu 2020-12-03 10:40:30 +08:00
parent 528d99258a
commit e37e5708e4
9 changed files with 205 additions and 158 deletions

View file

@ -1,4 +1,11 @@
mod heap_allocator;
mod address;
mod frame_allocator;
pub use heap_allocator::init_heap;
pub use heap_allocator::heap_test;
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();
}