[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:
2020-09-17 21:30:05 -07:00
parent 09575370ce
commit ac67111b83
7 changed files with 86 additions and 71 deletions

View File

@@ -19,9 +19,10 @@ vm_space::area::operator==(const vm_space::area &o) const
}
vm_space::vm_space(page_table *p, bool kernel) :
m_kernel(kernel),
m_pml4(p)
vm_space::vm_space(page_table *p) : m_kernel(true), m_pml4(p) {}
vm_space::vm_space() :
m_kernel(false)
{
}