[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

@@ -111,7 +111,7 @@ memory_initialize_pre_ctors(args::header *kargs)
// Create the page manager
new (&g_page_manager) page_manager {g_frame_allocator, kpml4};
vm_space &vm = *new (&g_kernel_space) vm_space {kpml4, true};
vm_space &vm = *new (&g_kernel_space) vm_space {kpml4};
vm.allow(memory::heap_start, memory::kernel_max_heap, true);
}