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:
@@ -227,7 +227,10 @@ page_table *
|
||||
page_manager::create_process_map()
|
||||
{
|
||||
page_table *table = get_table_page();
|
||||
kutil::memcpy(table, m_kernel_pml4, page_size);
|
||||
|
||||
kutil::memset(table, 0, page_size);
|
||||
table->entries[510] = m_kernel_pml4->entries[510];
|
||||
table->entries[511] = m_kernel_pml4->entries[511];
|
||||
|
||||
// Create the initial user stack
|
||||
map_pages(
|
||||
|
||||
Reference in New Issue
Block a user