aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-08-19 19:47:30 +0200
committerXander <xander@biltopia.org>2023-08-19 21:26:28 +0200
commit5e0dafa7cfbb90c941fc771f0d157cf13dc1aa91 (patch)
treeca2810bcc0d2261f98580723de43018e2d82c646 /arch/x86_64
parenta76c89dc3932f0b5e60ff871b08f4bc745727ae4 (diff)
downloadats-os-5e0dafa7cfbb90c941fc771f0d157cf13dc1aa91.tar.xz
ats-os-5e0dafa7cfbb90c941fc771f0d157cf13dc1aa91.zip
implement table
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/boot/boot.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86_64/boot/boot.asm b/arch/x86_64/boot/boot.asm
index 3f85423..c229c19 100644
--- a/arch/x86_64/boot/boot.asm
+++ b/arch/x86_64/boot/boot.asm
@@ -94,6 +94,10 @@ error:
hlt
set_up_page_tables:
+ ; map P4 table recursively
+ mov eax, p4_table
+ or eax, 0b11 ; present + writable
+ mov [p4_table + 511 * 8], eax
; map first P4 entry to P3 table
mov eax, p3_table
or eax, 0b11 ; present + writable