Kernel: Removing hardcoded offsets from Memory Manager

Now the kernel page directory and the page tables are located at a
safe address, to prevent from paging data colliding with garbage.
This commit is contained in:
supercomputer7 2019-11-08 16:37:33 +02:00 committed by Andreas Kling
commit c3c905aa6c
Notes: sideshowbarker 2024-07-19 11:19:43 +09:00
5 changed files with 18 additions and 12 deletions

View file

@ -38,7 +38,7 @@ class MemoryManager {
public:
static MemoryManager& the();
static void initialize();
static void initialize(u32 physical_address_for_kernel_page_tables);
PageFaultResponse handle_page_fault(const PageFault&);
@ -79,7 +79,7 @@ public:
}
private:
MemoryManager();
MemoryManager(u32 physical_address_for_kernel_page_tables);
~MemoryManager();
void register_vmo(VMObject&);