[kernel] Move the page table cache into page_table
Further chipping away at page_manager: the cache of pages to be used as page tables gets moved to a static in page_table.
This commit is contained in:
@@ -14,10 +14,12 @@ class vm_area;
|
||||
class vm_space
|
||||
{
|
||||
public:
|
||||
/// Constructor.
|
||||
/// \arg pml4 The pml4 for this address space
|
||||
/// \arg kernel True if this is the kernel address space
|
||||
vm_space(page_table *pml4, bool kernel = false);
|
||||
/// Constructor for the kernel address space
|
||||
/// \arg pml4 The existing kernel PML4
|
||||
vm_space(page_table *pml4);
|
||||
|
||||
/// Constructor. Creates a new address space.
|
||||
vm_space();
|
||||
|
||||
~vm_space();
|
||||
|
||||
@@ -81,6 +83,7 @@ private:
|
||||
bool m_kernel;
|
||||
page_table *m_pml4;
|
||||
|
||||
|
||||
struct area {
|
||||
uintptr_t base;
|
||||
vm_area *area;
|
||||
|
||||
Reference in New Issue
Block a user