aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-20 06:32:02 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-20 06:32:02 +0000
commit7ebfe9e09efa84044d1470132b7f55ebf53a7f89 (patch)
treeb5f0c21be0411c6586a1202b2d92d5aad72bf3db /arch/x86_64/include
parent7ca089125b8c5e55dd584648cd33612883cc004d (diff)
downloadteachos-7ebfe9e09efa84044d1470132b7f55ebf53a7f89.tar.xz
teachos-7ebfe9e09efa84044d1470132b7f55ebf53a7f89.zip
Fix next_table_address
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/paging/page_table.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/memory/paging/page_table.hpp b/arch/x86_64/include/arch/memory/paging/page_table.hpp
index da63d8c..73b75ad 100644
--- a/arch/x86_64/include/arch/memory/paging/page_table.hpp
+++ b/arch/x86_64/include/arch/memory/paging/page_table.hpp
@@ -89,7 +89,7 @@ namespace teachos::arch::memory::paging
* @param table_index Index of this page table in the page table one level higher.
* @return An optional of the address of the next page table or null.
*/
- auto next_table_address(std::size_t table_index) const -> std::optional<std::size_t>;
+ auto next_table_address(std::size_t table_index) -> std::optional<std::size_t>;
level current_level; ///< Current level of the page table, used to ensure next_table() is never called with a level
///< 1 page table