mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
_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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user