aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-23 15:08:10 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-23 15:08:10 +0000
commit4c97a4e1e2055ce63a0d16d1e5be880792a5e7eb (patch)
treefbd18e0d2ef48554b3063f438c265a0123fa776b /arch/x86_64/src/memory
parent97fe123c2d5bd0c49e8d360a989fcee8971c61ba (diff)
downloadteachos-4c97a4e1e2055ce63a0d16d1e5be880792a5e7eb.tar.xz
teachos-4c97a4e1e2055ce63a0d16d1e5be880792a5e7eb.zip
Replace uint64_t with size_t
Diffstat (limited to 'arch/x86_64/src/memory')
-rw-r--r--arch/x86_64/src/memory/paging/virtual_page.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/memory/paging/virtual_page.cpp b/arch/x86_64/src/memory/paging/virtual_page.cpp
index fd2085b..91f63b4 100644
--- a/arch/x86_64/src/memory/paging/virtual_page.cpp
+++ b/arch/x86_64/src/memory/paging/virtual_page.cpp
@@ -17,9 +17,9 @@ namespace teachos::arch::memory::paging
return virtual_page{virtual_address / allocator::PAGE_FRAME_SIZE};
}
- auto virtual_page::start_address() const -> uint64_t { return page_number * allocator::PAGE_FRAME_SIZE; }
+ auto virtual_page::start_address() const -> size_t { return page_number * allocator::PAGE_FRAME_SIZE; }
- auto virtual_page::get_level_index(page_table_handle::level level) const -> uint64_t
+ auto virtual_page::get_level_index(page_table_handle::level level) const -> size_t
{
return (start_address() >> (level * 9U)) & 0x1FF;
}