Extract VirtAddrAllocator and add alloc_specific API

This commit is contained in:
Yuke Peng
2024-10-21 18:43:19 +08:00
committed by Tate, Hongliang Tian
parent 1f03955f51
commit 0054a8080f
4 changed files with 170 additions and 108 deletions

View File

@ -31,8 +31,8 @@ pub mod bus;
pub mod collections;
pub mod console;
pub mod cpu;
pub mod io;
mod error;
pub mod io;
pub mod logger;
pub mod mm;
pub mod panic;
@ -43,7 +43,7 @@ pub mod task;
pub mod timer;
pub mod trap;
pub mod user;
mod util;
pub(crate) mod util;
use core::sync::atomic::{AtomicBool, Ordering};