diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-31 14:58:03 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-31 14:58:03 +0100 |
commit | 193ead94f8ba64732d3f57dcf3c5054cd8809b88 (patch) | |
tree | 55ffd8533073befeebc227216c99b513a5292da7 /Kernel/Process.h | |
parent | 2239ab96e7fdb9ba2d188e2237c2d5a78a2063a7 (diff) | |
download | serenity-193ead94f8ba64732d3f57dcf3c5054cd8809b88.zip |
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.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r-- | Kernel/Process.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index 696fdbaf5f..10ea1f2347 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -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 }; |