aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot/boot.s
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/boot/boot.s')
-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