From c9795c95a8cc07e6b2010e91c803cea793975957 Mon Sep 17 00:00:00 2001 From: Amelia Coutard Date: Mon, 6 Mar 2023 00:45:34 +0100 Subject: [PATCH] Added the global bit to all pages in the higher half --- kernel/src/boot.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/src/boot.S b/kernel/src/boot.S index 737800b..a4b2fb8 100644 --- a/kernel/src/boot.S +++ b/kernel/src/boot.S @@ -116,11 +116,11 @@ IO_MAP_END: PML4T: .quad PDPT_low - KERNEL_VMA + 3 .skip 0x1000 - 16 .quad PDPT_high - KERNEL_VMA + 3 -PDPT_low: .quad 0x83 +PDPT_low: .quad 0x183 # G | 1GiB page | R/W | P .skip 0x1000 - 8 PDPT_high: .skip 0x1000 - 16 - .quad 0x83 - .quad 0x83 + 1024 * 1024 * 1024 + .quad 0x183 + .quad 0x183 + 1024 * 1024 * 1024 .section .bss .align 0x1000 @@ -251,7 +251,7 @@ _start: add $8, %rdi loop 1b - mov $0x83, %rbx + mov $0x183, %rbx # G | R/W | P mov $phys_mem_map, %rdi mov $128 * 512, %rcx 1: mov %rbx, (%rdi) -- 2.47.0