mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Andreas Kling
parent
39fcd92210
commit
c3c905aa6c
Notes:
sideshowbarker
2024-07-19 11:19:43 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/c3c905aa6c3 Pull-request: https://github.com/SerenityOS/serenity/pull/741 Reviewed-by: https://github.com/awesomekling
@@ -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&);
|
||||
|
||||
Reference in New Issue
Block a user