From: Amelia Coutard Date: Sun, 5 Mar 2023 18:56:36 +0000 (+0100) Subject: Enable global bit for paging X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=4dd2c4f66cd3e63feff78bf8279e209281aa008a;p=voyage-au-centre-des-fichiers.git Enable global bit for paging --- diff --git a/kernel/src/boot.S b/kernel/src/boot.S index 3becb43..75cc0a0 100644 --- a/kernel/src/boot.S +++ b/kernel/src/boot.S @@ -193,9 +193,10 @@ _start: mov $PML4T - KERNEL_VMA, %eax mov %eax, %cr3 - # Enable PAE paging: + # Enable PAE paging, and global pages: mov %cr4, %eax - or $1 << 5, %eax + or $1 << 5, %eax # PAE + or $1 << 7, %eax # PGE mov %eax, %cr4 # Set long mode bit: