From 48ef6cc9e303b10d0fba9dc2146efa810db60d34 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 15 Aug 2016 11:29:53 -0600 Subject: [PATCH] Add simple paging, use rust libcore and compile without sse --- x86/startup-x86_64.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x86/startup-x86_64.asm b/x86/startup-x86_64.asm index 2ced7094a0..25a6102de0 100644 --- a/x86/startup-x86_64.asm +++ b/x86/startup-x86_64.asm @@ -17,6 +17,8 @@ startup_arch: ;Link first PML4 to PDP mov DWORD [es:edi], 0x71000 | 1 << 1 | 1 add edi, 0x1000 + ;Link last PML4 to PML4 + mov DWORD [es:edi - 8], 0x70000 | 1 << 1 | 1 ;Link first PDP to PD mov DWORD [es:edi], 0x72000 | 1 << 1 | 1 add edi, 0x1000