mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
Kernel/aarch64: Set up pointer to kernel page directory
The MemoryManager uses this pointer to adds its newly created page tables to the kernel page directory.
This commit is contained in:
committed by
Andreas Kling
parent
96f73c9289
commit
c2e410195a
Notes:
sideshowbarker
2024-07-17 06:30:02 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/c2e410195a Pull-request: https://github.com/SerenityOS/serenity/pull/15309 Reviewed-by: https://github.com/bgianfo Reviewed-by: https://github.com/bugreport0 Reviewed-by: https://github.com/nico ✅
@@ -494,10 +494,8 @@ UNMAP_AFTER_INIT void MemoryManager::initialize_physical_pages()
|
||||
auto* pd = reinterpret_cast<PageDirectoryEntry*>(quickmap_page(boot_pd_kernel));
|
||||
PageDirectoryEntry& pde = pd[page_directory_index];
|
||||
|
||||
// FIXME: port quickmap_page to aarch64
|
||||
#if !ARCH(AARCH64)
|
||||
VERIFY(!pde.is_present()); // Nothing should be using this PD yet
|
||||
#endif
|
||||
|
||||
// We can't use ensure_pte quite yet!
|
||||
pde.set_page_table_base(pt_paddr.get());
|
||||
pde.set_user_allowed(false);
|
||||
|
||||
Reference in New Issue
Block a user