mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 13:18:19 +00: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:
parent
39fcd92210
commit
c3c905aa6c
Notes:
sideshowbarker
2024-07-19 11:19:43 +09:00
Author: https://github.com/supercomputer7
Commit: c3c905aa6c
Pull-request: https://github.com/SerenityOS/serenity/pull/741
Reviewed-by: https://github.com/awesomekling
5 changed files with 18 additions and 12 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue