aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/paging
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-29 06:55:36 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-29 06:55:36 +0000
commit0d16592c8dce876d8e621c73dea41c33339f3173 (patch)
tree819e6e1231ed0d2bf2fecaa9a67aca3a8b0da112 /arch/x86_64/src/memory/paging
parentf9f047f519d0100c40b914d3ce777ac2f8430b38 (diff)
downloadteachos-0d16592c8dce876d8e621c73dea41c33339f3173.tar.xz
teachos-0d16592c8dce876d8e621c73dea41c33339f3173.zip
Use more virtual and physical address typedef where useful
Diffstat (limited to 'arch/x86_64/src/memory/paging')
-rw-r--r--arch/x86_64/src/memory/paging/virtual_page.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/paging/virtual_page.cpp b/arch/x86_64/src/memory/paging/virtual_page.cpp
index 4221335..c0ec88d 100644
--- a/arch/x86_64/src/memory/paging/virtual_page.cpp
+++ b/arch/x86_64/src/memory/paging/virtual_page.cpp
@@ -17,7 +17,7 @@ namespace teachos::arch::memory::paging
return virtual_page{address / allocator::PAGE_FRAME_SIZE};
}
- auto virtual_page::start_address() const -> size_t { return page_number * allocator::PAGE_FRAME_SIZE; }
+ auto virtual_page::start_address() const -> virtual_address { return page_number * allocator::PAGE_FRAME_SIZE; }
auto virtual_page::get_level_index(page_table_handle::level level) const -> size_t
{