aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-23 14:32:27 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-23 14:32:27 +0000
commit97fe123c2d5bd0c49e8d360a989fcee8971c61ba (patch)
tree167a49fd4f653e5fe718dde9de2060d8a647a5d0
parentc7bc900ef9293045265f503696277b0405119c40 (diff)
downloadteachos-97fe123c2d5bd0c49e8d360a989fcee8971c61ba.tar.xz
teachos-97fe123c2d5bd0c49e8d360a989fcee8971c61ba.zip
Add todo comment on why code crashes
-rw-r--r--arch/x86_64/src/memory/paging/page_table.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/src/memory/paging/page_table.cpp b/arch/x86_64/src/memory/paging/page_table.cpp
index bfd91da..21611e1 100644
--- a/arch/x86_64/src/memory/paging/page_table.cpp
+++ b/arch/x86_64/src/memory/paging/page_table.cpp
@@ -74,6 +74,7 @@ namespace teachos::arch::memory::paging
// C array is not bounds checked, therefore we have to check ourselves, to ensure no out of bounds reads, which
// could be incredibly hard to debug later.
exception_handling::assert(index < PAGE_TABLE_ENTRY_COUNT, "[Page Table] Index out of bounds");
+ // TODO: This section seems to return completly invalid entry, debugger doesn't even show a value? Revert once fixed
auto & entry = entries[index];
return entry;
}