aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/boot/boot.asm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/boot/boot.asm')
-rw-r--r--arch/x86_64/boot/boot.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86_64/boot/boot.asm b/arch/x86_64/boot/boot.asm
index 3f85423..c229c19 100644
--- a/arch/x86_64/boot/boot.asm
+++ b/arch/x86_64/boot/boot.asm
@@ -94,6 +94,10 @@ error:
hlt
set_up_page_tables:
+ ; map P4 table recursively
+ mov eax, p4_table
+ or eax, 0b11 ; present + writable
+ mov [p4_table + 511 * 8], eax
; map first P4 entry to P3 table
mov eax, p3_table
or eax, 0b11 ; present + writable