25 lines
459 B
Rust
25 lines
459 B
Rust
pub mod address;
|
|
pub mod allocator;
|
|
pub mod buddy;
|
|
pub mod paging;
|
|
pub mod pm_manages;
|
|
pub mod pmm;
|
|
pub mod vmm;
|
|
pub mod pm_router;
|
|
|
|
pub fn init_pmm(memmap: &limine::response::MemoryMapResponse) {
|
|
unsafe { pmm::BitmapPMM::init(memmap); }
|
|
}
|
|
|
|
pub fn init_cpu_features() {
|
|
vmm::init_cpu_features();
|
|
}
|
|
|
|
pub fn init_vmm(pml4_phys: address::PhysAddr) {
|
|
vmm::init_kernel_space(pml4_phys);
|
|
}
|
|
|
|
pub fn get_stats() -> (usize, usize) {
|
|
pmm::get_stats()
|
|
}
|