1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:08:10 +00:00

Let PageDirectory have a PhysicalPage for the PDB instead of being the PDB.

This is more efficient than using the wasteful kmalloc_aligned() approach
to allocation. It also allows much tighter encapsulation of the class.
This commit is contained in:
Andreas Kling 2018-12-31 14:58:03 +01:00
parent 2239ab96e7
commit 193ead94f8
4 changed files with 122 additions and 100 deletions

View file

@ -238,7 +238,7 @@ private:
int alloc_fd();
PageDirectory* m_page_directory { nullptr };
OwnPtr<PageDirectory> m_page_directory;
Process* m_prev { nullptr };
Process* m_next { nullptr };