aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2024-10-22 09:19:57 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2024-10-22 09:19:57 +0000
commitd42ef85dbc3786fb45b8b4625b3f07446f51390d (patch)
tree9a0513c9c50cecd7e2fd3d66b09f20aac742f66b /arch/x86_64/include
parent1e93ec64e13bb14b79bf79d6c804570f26d62dda (diff)
downloadteachos-d42ef85dbc3786fb45b8b4625b3f07446f51390d.tar.xz
teachos-d42ef85dbc3786fb45b8b4625b3f07446f51390d.zip
add todos
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/paging/page_entry.hpp4
-rw-r--r--arch/x86_64/include/arch/memory/paging/page_mapper.hpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86_64/include/arch/memory/paging/page_entry.hpp b/arch/x86_64/include/arch/memory/paging/page_entry.hpp
index 33126f0..73aa554 100644
--- a/arch/x86_64/include/arch/memory/paging/page_entry.hpp
+++ b/arch/x86_64/include/arch/memory/paging/page_entry.hpp
@@ -85,8 +85,8 @@ namespace teachos::arch::memory::paging
*/
auto calculate_physical_address() const -> std::size_t;
- std::bitset<64U> flags; ///< Underlying bitset used to read the flags from. Bits 9 - 11 and 52 - 62 can be freely
- ///< used for additional flags by the operating system.
+ std::bitset<64U> flags = {}; ///< Underlying bitset used to read the flags from. Bits 9 - 11 and 52 - 62 can be
+ ///< freely used for additional flags by the operating system.
};
} // namespace teachos::arch::memory::paging
diff --git a/arch/x86_64/include/arch/memory/paging/page_mapper.hpp b/arch/x86_64/include/arch/memory/paging/page_mapper.hpp
index cd71c73..4735c13 100644
--- a/arch/x86_64/include/arch/memory/paging/page_mapper.hpp
+++ b/arch/x86_64/include/arch/memory/paging/page_mapper.hpp
@@ -79,6 +79,8 @@ namespace teachos::arch::memory::paging
// There should now be an entry at the previously not existent index, therefore we can simply access it again.
next_handle = current_handle.next_table(level_index);
exception_handling::assert(next_handle.has_value(), "[Page mapper] Unable to create new entry into page table");
+
+ // TODO: Crashes here!
next_handle.value().zero_entries();
}
current_handle = next_handle.value();