1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:17:43 +00:00

Kernel: Use NonnullRefPtr<PhysicalPage> in PageDirectory::m_page_tables

We don't care to store null page pointers in the page table map.
This commit is contained in:
Andreas Kling 2021-08-15 13:18:43 +02:00
parent ff0f67b3f0
commit a154faebb7
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ private:
#else
RefPtr<PhysicalPage> m_directory_pages[4];
#endif
HashMap<FlatPtr, RefPtr<PhysicalPage>> m_page_tables;
HashMap<FlatPtr, NonnullRefPtr<PhysicalPage>> m_page_tables;
RecursiveSpinLock m_lock;
};