projects
/
voyage-au-centre-des-fichiers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eff72e3
)
Enable global bit for paging
author
Amelia Coutard
<eliottulio.coutard@gmail.com>
Sun, 5 Mar 2023 18:56:36 +0000
(19:56 +0100)
committer
Amelia Coutard
<eliottulio.coutard@gmail.com>
Sun, 5 Mar 2023 18:56:36 +0000
(19:56 +0100)
kernel/src/boot.S
patch
|
blob
|
history
diff --git
a/kernel/src/boot.S
b/kernel/src/boot.S
index 3becb43331b950eea55bab900a7ba7a6717c65fd..75cc0a03d60911e0080a747d3c945933770131fe 100644
(file)
--- 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: