diff options
author | Xander <xander@biltopia.org> | 2023-08-19 19:47:30 +0200 |
---|---|---|
committer | Xander <xander@biltopia.org> | 2023-08-19 21:26:28 +0200 |
commit | 5e0dafa7cfbb90c941fc771f0d157cf13dc1aa91 (patch) | |
tree | ca2810bcc0d2261f98580723de43018e2d82c646 /arch/x86_64/boot | |
parent | a76c89dc3932f0b5e60ff871b08f4bc745727ae4 (diff) | |
download | ats-os-5e0dafa7cfbb90c941fc771f0d157cf13dc1aa91.tar.xz ats-os-5e0dafa7cfbb90c941fc771f0d157cf13dc1aa91.zip |
implement table
Diffstat (limited to 'arch/x86_64/boot')
-rw-r--r-- | arch/x86_64/boot/boot.asm | 4 |
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 |