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:
f16ede9
)
Added the global bit to all pages in the higher half
author
Amelia Coutard
<eliottulio.coutard@gmail.com>
Sun, 5 Mar 2023 23:45:34 +0000
(
00:45
+0100)
committer
Amelia Coutard
<eliottulio.coutard@gmail.com>
Sun, 5 Mar 2023 23:45:34 +0000
(
00:45
+0100)
kernel/src/boot.S
patch
|
blob
|
history
diff --git
a/kernel/src/boot.S
b/kernel/src/boot.S
index 737800ba28862eaf9a7d8a3af03661279825fdc1..a4b2fb833acc40da4c4f9d54cc2ab6c730a44061 100644
(file)
--- 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 0x
83
+PDPT_low: .quad 0x
183 # G | 1GiB page | R/W | P
.skip 0x1000 - 8
PDPT_high: .skip 0x1000 - 16
- .quad 0x83
- .quad 0x83 + 1024 * 1024 * 1024
+ .quad 0x
1
83
+ .quad 0x
1
83 + 1024 * 1024 * 1024
.section .bss
.align 0x1000
@@
-251,7
+251,7
@@
_start:
add $8, %rdi
loop 1b
- mov $0x
83, %rbx
+ mov $0x
183, %rbx # G | R/W | P
mov $phys_mem_map, %rdi
mov $128 * 512, %rcx
1: mov %rbx, (%rdi)