1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:27:45 +00:00

Kernel: Release page tables when no longer needed

When unmapping regions, check if page tables can be freed.

This is a follow-up change for #3254.
This commit is contained in:
Tom 2020-08-27 21:29:17 -06:00 committed by Andreas Kling
parent 88319b188e
commit 67dbb56444
5 changed files with 50 additions and 7 deletions

View file

@ -66,7 +66,7 @@ private:
RangeAllocator m_identity_range_allocator;
RefPtr<PhysicalPage> m_directory_table;
RefPtr<PhysicalPage> m_directory_pages[4];
HashTable<RefPtr<PhysicalPage>> m_physical_pages;
HashMap<u32, RefPtr<PhysicalPage>> m_page_tables;
};
}