diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-15 13:18:43 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-15 16:53:03 +0200 |
commit | a154faebb7e207df14807e31c271b6977c05d924 (patch) | |
tree | 2a7ffd5cdce8816b9462c95bd5de9e9c8035555c /Kernel/Memory/PageDirectory.h | |
parent | ff0f67b3f0f48025681e9b868eaa848ea5a3b7c6 (diff) | |
download | serenity-a154faebb7e207df14807e31c271b6977c05d924.zip |
Kernel: Use NonnullRefPtr<PhysicalPage> in PageDirectory::m_page_tables
We don't care to store null page pointers in the page table map.
Diffstat (limited to 'Kernel/Memory/PageDirectory.h')
-rw-r--r-- | Kernel/Memory/PageDirectory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Memory/PageDirectory.h b/Kernel/Memory/PageDirectory.h index b50a2867b0..7770da0ec2 100644 --- a/Kernel/Memory/PageDirectory.h +++ b/Kernel/Memory/PageDirectory.h @@ -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; }; |