aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2024-11-03 12:13:08 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2024-11-03 12:13:08 +0000
commit266560b90ab4772702c9c665c017c32cc735746d (patch)
tree555a7baa276044ce4cdd6fcb2741f260ad06f89f /arch/x86_64/src
parent67be3c58bef94fece14d4e3a79f3559649e9a74c (diff)
parentbe546b091795e740e9dd4c35fce6453fafe0319c (diff)
downloadteachos-266560b90ab4772702c9c665c017c32cc735746d.tar.xz
teachos-266560b90ab4772702c9c665c017c32cc735746d.zip
Merge branch 'feat_memory_manager' of ssh://gitlab.ost.ch:45022/teachos/kernel into feat_memory_manager
Diffstat (limited to 'arch/x86_64/src')
-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;