diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-16 13:33:23 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-16 13:33:23 +0000 |
| commit | 934822e48a7c5a3e65ed74261ce5ab4315595f64 (patch) | |
| tree | fa9e04075b5924d74ee25f0353ce2492099bdee6 /arch/x86_64/src/boot/boot.s | |
| parent | f56004a77314d4b4d68bfaf496fd7c6013ba7a27 (diff) | |
| download | teachos-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/boot.s')
| -rw-r--r-- | arch/x86_64/src/boot/boot.s | 5 |
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 |
