aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-16 13:33:23 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-16 13:33:23 +0000
commit934822e48a7c5a3e65ed74261ce5ab4315595f64 (patch)
treefa9e04075b5924d74ee25f0353ce2492099bdee6 /arch/x86_64/src/boot
parentf56004a77314d4b4d68bfaf496fd7c6013ba7a27 (diff)
downloadteachos-934822e48a7c5a3e65ed74261ce5ab4315595f64.tar.xz
teachos-934822e48a7c5a3e65ed74261ce5ab4315595f64.zip
Fix compilation issues with assigning values to page_map_variable address
Diffstat (limited to 'arch/x86_64/src/boot')
-rw-r--r--arch/x86_64/src/boot/boot.s5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86_64/src/boot/boot.s b/arch/x86_64/src/boot/boot.s
index e3d9c37..2aa30c6 100644
--- a/arch/x86_64/src/boot/boot.s
+++ b/arch/x86_64/src/boot/boot.s
@@ -266,9 +266,8 @@ enable_paging:
/* Map the P4 table recursively */
mov $page_map_level_4, %eax
- or 0b11, %eax
- // TODO: WHY THIS THROW ERROR?
- //mov %eax, [$page_map_level_4 + 511 * 8]
+ or 0b11, %eax /* Write present + writable flags into eax register */
+ mov %eax, (page_map_level_4 + 511 * 8)
/* Enable Physical Address Extension */
mov %cr4, %eax