[kernel] Move vm_space into kernel

The vm_space code should not have been in kutil, moving it to kernel.
This commit is contained in:
2020-09-13 16:11:24 -07:00
parent 9dee5e4138
commit e8564c755b
7 changed files with 12 additions and 21 deletions

View File

@@ -5,12 +5,12 @@
#include "kutil/assert.h"
#include "kutil/heap_allocator.h"
#include "kutil/no_construct.h"
#include "kutil/vm_space.h"
#include "frame_allocator.h"
#include "io.h"
#include "log.h"
#include "page_manager.h"
#include "vm_space.h"
using memory::frame_size;
using memory::heap_start;
@@ -24,7 +24,7 @@ using memory::table_entries;
using namespace kernel;
kutil::vm_space g_kernel_space {kernel_offset, (heap_start-kernel_offset)};
vm_space g_kernel_space {kernel_offset, (heap_start-kernel_offset)};
// These objects are initialized _before_ global constructors are called,
@@ -54,7 +54,7 @@ void walk_page_table(
page_table::level level,
uintptr_t &current_start,
size_t &current_bytes,
kutil::vm_space &kspace)
vm_space &kspace)
{
constexpr size_t huge_page_size = (1ull<<30);
constexpr size_t large_page_size = (1ull<<21);