From: Amelia Coutard Date: Sun, 5 Mar 2023 23:45:34 +0000 (+0100) Subject: Added the global bit to all pages in the higher half X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=c9795c95a8cc07e6b2010e91c803cea793975957;p=voyage-au-centre-des-fichiers.git Added the global bit to all pages in the higher half --- 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)