mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 12:32:20 +02:00
x86: Simplify region unmapping a bit
Add PageTableEntry::clear() to zero out a whole PTE, and use that for unmapping instead of clearing individual fields.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 09:31:52 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a9d7902bb73
@@ -559,8 +559,7 @@ void MemoryManager::unquickmap_page()
|
||||
ASSERT_INTERRUPTS_DISABLED();
|
||||
ASSERT(m_quickmap_in_use);
|
||||
auto& pte = boot_pd3_pde1023_pt[0];
|
||||
pte.set_physical_page_base(0);
|
||||
pte.set_present(false);
|
||||
pte.clear();
|
||||
flush_tlb(VirtualAddress(0xffe00000));
|
||||
m_quickmap_in_use = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user