mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00: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:
@@ -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