aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2024-10-22 07:40:35 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2024-10-22 07:40:35 +0000
commit5a2892f65abe13c32bb07de697826f374c1d2b1d (patch)
treef0bd3f00be82cce9265a2d6fc0aa0f360177eb91 /arch/x86_64/include
parent7d1d7c5f63791506049cc188740cc4956fc8d14c (diff)
downloadteachos-5a2892f65abe13c32bb07de697826f374c1d2b1d.tar.xz
teachos-5a2892f65abe13c32bb07de697826f374c1d2b1d.zip
change table level 4 address
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/paging/page_mapper.hpp5
1 files changed, 2 insertions, 3 deletions
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 a8cca4c..24d8cde 100644
--- a/arch/x86_64/include/arch/memory/paging/page_mapper.hpp
+++ b/arch/x86_64/include/arch/memory/paging/page_mapper.hpp
@@ -73,12 +73,11 @@ namespace teachos::arch::memory::paging
if (!next_handle)
{
auto allocated_frame = allocator.allocate_frame();
- exception_handling::assert(!allocated_frame.has_value(), "[Page mapper] Unable to allocate frame");
+ exception_handling::assert(allocated_frame.has_value(), "[Page mapper] Unable to allocate frame");
current_handle[level_index].set_entry(allocated_frame.value(), entry::PRESENT | entry::WRITABLE);
// 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(page.get_level_index(level));
- exception_handling::assert(!next_handle.has_value(),
- "[Page mapper] Unable to create new entry into page table");
+ exception_handling::assert(next_handle.has_value(), "[Page mapper] Unable to create new entry into page table");
next_handle.value().zero_entries();
}
current_handle = next_handle.value();