From 4dd2c4f66cd3e63feff78bf8279e209281aa008a Mon Sep 17 00:00:00 2001
From: Amelia Coutard <eliottulio.coutard@gmail.com>
Date: Sun, 5 Mar 2023 19:56:36 +0100
Subject: [PATCH] Enable global bit for paging

---
 kernel/src/boot.S | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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:
-- 
2.46.0