aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/paging
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-11-03 11:56:46 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-11-03 11:56:46 +0000
commitbe546b091795e740e9dd4c35fce6453fafe0319c (patch)
tree1d8c7bfc93f91e80534e9f0fb96d32c6fda69194 /arch/x86_64/src/memory/paging
parent9292814545ab5df5aa69d4f75a6d9230f3e03f5b (diff)
downloadteachos-be546b091795e740e9dd4c35fce6453fafe0319c.tar.xz
teachos-be546b091795e740e9dd4c35fce6453fafe0319c.zip
Make member variables private again.
Diffstat (limited to 'arch/x86_64/src/memory/paging')
-rw-r--r--arch/x86_64/src/memory/paging/active_page_table.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/src/memory/paging/active_page_table.cpp b/arch/x86_64/src/memory/paging/active_page_table.cpp
index 844ae37..033a363 100644
--- a/arch/x86_64/src/memory/paging/active_page_table.cpp
+++ b/arch/x86_64/src/memory/paging/active_page_table.cpp
@@ -10,6 +10,8 @@ namespace teachos::arch::memory::paging
return active_page;
}
+ auto active_page_table::operator[](std::size_t index) -> entry & { return active_handle[index]; }
+
auto active_page_table::translate_address(virtual_address address) -> std::optional<allocator::physical_address>
{
auto const offset = address % allocator::PAGE_FRAME_SIZE;