feat: docs & ARCH 2.2, 2.3, 2.4
This commit is contained in:
@@ -12,8 +12,8 @@ pub mod pm_router;
|
||||
/// Initialise the physical memory manager.
|
||||
///
|
||||
/// Must be called before any heap allocation or VMM operation.
|
||||
pub fn init_pmm(memmap: &limine::response::MemoryMapResponse, hhdm_offset: u64) {
|
||||
unsafe { pmm::BitmapPMM::init(memmap, hhdm_offset); }
|
||||
pub fn init_pmm(memmap: &limine::response::MemoryMapResponse) {
|
||||
unsafe { pmm::BitmapPMM::init(memmap); }
|
||||
}
|
||||
|
||||
/// Initialise CPU features required by the VMM (INVPCID detection).
|
||||
@@ -25,8 +25,8 @@ pub fn init_cpu_features() {
|
||||
|
||||
/// Initialise the kernel address space record (after PMM, heap, and the
|
||||
/// initial P4 page table have been set up in `kmain`).
|
||||
pub fn init_vmm(pml4_phys: address::PhysAddr, hhdm_offset: u64) {
|
||||
vmm::init_kernel_space(pml4_phys, hhdm_offset);
|
||||
pub fn init_vmm(pml4_phys: address::PhysAddr) {
|
||||
vmm::init_kernel_space(pml4_phys);
|
||||
}
|
||||
|
||||
/// Physical memory statistics: `(used_pages, total_pages)`.
|
||||
|
||||
Reference in New Issue
Block a user