diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-28 12:29:39 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-28 12:29:39 +0000 |
| commit | 58680f7d84ca5771be31c0037e8caf5791d79b3c (patch) | |
| tree | d915d1def0dfc6a0754be3e962a596df1dcdc39b /arch/x86_64/src/memory/paging | |
| parent | 04b0285d8329e45cea426aa1a8e69203685a4467 (diff) | |
| download | teachos-58680f7d84ca5771be31c0037e8caf5791d79b3c.tar.xz teachos-58680f7d84ca5771be31c0037e8caf5791d79b3c.zip | |
Fix invalid assertion
Diffstat (limited to 'arch/x86_64/src/memory/paging')
| -rw-r--r-- | arch/x86_64/src/memory/paging/page_table.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/paging/page_table.cpp b/arch/x86_64/src/memory/paging/page_table.cpp index f1df31d..e919a1e 100644 --- a/arch/x86_64/src/memory/paging/page_table.cpp +++ b/arch/x86_64/src/memory/paging/page_table.cpp @@ -84,7 +84,6 @@ 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 return entries[index]; } |
