_Actually_ move the kernel to the last TiB.

More work on process page tables, including only mapping the last 2 pml4
entries (the highest 1TiB of the address space, ie, kernel space) into a
new table.

Includes the work of actually moving the kernel there, which I had
apparently done in name only previously. Oops.
This commit is contained in:
Justin C. Miller
2018-09-01 14:54:12 -07:00
parent d33f1bc6f2
commit 799fbbdd10
9 changed files with 16 additions and 16 deletions

View File

@@ -8,7 +8,8 @@
#include "scheduler.h"
scheduler scheduler::s_instance(nullptr);
static const uint32_t quantum = 2000000;
//static const uint32_t quantum = 2000000;
static const uint32_t quantum = 20000000;
const int stack_size = 0x1000;
@@ -42,7 +43,7 @@ create_process(uint16_t pid, void (*rip)())
state->ds = state->ss = ss;
state->cs = cs;
state->rflags = 0x202; // testing. TODO: 0x202
state->rflags = 0x202;
state->rip = reinterpret_cast<uint64_t>(rip);
page_table *pml4 = page_manager::get()->create_process_map();