aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2024-10-22 08:00:57 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2024-10-22 08:00:57 +0000
commit7d4139b6fa0214604f467a782951cdc0f90e903f (patch)
tree8a6dc1e9b8e64f161374cfac8202d3e234dcc27d /arch/x86_64/include
parent8911e405e1d04676f9dd9129c3cfeccd9379b785 (diff)
downloadteachos-7d4139b6fa0214604f467a782951cdc0f90e903f.tar.xz
teachos-7d4139b6fa0214604f467a782951cdc0f90e903f.zip
fix page level -- operator
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/paging/page_table.hpp4
1 files changed, 2 insertions, 2 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 feb327a..e6542a2 100644
--- a/arch/x86_64/include/arch/memory/paging/page_table.hpp
+++ b/arch/x86_64/include/arch/memory/paging/page_table.hpp
@@ -58,7 +58,7 @@ namespace teachos::arch::memory::paging
*
* @param table_index Index of this page table in the page table one level lower.
*/
- auto next_table(std::size_t table_index) const -> std::optional<page_table_handle>;
+ auto next_table(std::size_t table_index) -> std::optional<page_table_handle>;
/**
* @brief Index operator overload to access specific immutable entry directy.
@@ -83,7 +83,7 @@ namespace teachos::arch::memory::paging
* @param value Value we want to decrement on
* @return level New level value decrement by one, meaning the level is also decrement by one Level4 --> Level3, ...
*/
- friend auto operator--(level value, int) -> level;
+ friend auto operator--(level & value, int) -> level;
private:
page_table * handle; ///< Handle to underlying page table, can never be null (invariant ensured by constructor)