_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

@@ -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(