diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-11-03 12:13:08 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-11-03 12:13:08 +0000 |
| commit | 266560b90ab4772702c9c665c017c32cc735746d (patch) | |
| tree | 555a7baa276044ce4cdd6fcb2741f260ad06f89f /arch/x86_64/src | |
| parent | 67be3c58bef94fece14d4e3a79f3559649e9a74c (diff) | |
| parent | be546b091795e740e9dd4c35fce6453fafe0319c (diff) | |
| download | teachos-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.cpp | 2 |
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; |
