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

Add a PageDirectory::flush() that does nothing if another PD is active.

This way callers can just flush() every time after making any modification
and the PageDirectory itself will decide if TLB invalidation is necessary.
This commit is contained in:
Andreas Kling 2018-12-31 20:52:59 +01:00
parent cc30407b8c
commit a5ffa2eec7
2 changed files with 11 additions and 14 deletions

View file

@ -61,7 +61,7 @@ public:
dword cr3() const { return m_directory_page->paddr().get(); }
dword* entries() { return reinterpret_cast<dword*>(cr3()); }
bool is_active() const;
void flush(LinearAddress);
private:
RetainPtr<PhysicalPage> m_directory_page;