aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/allocator
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-27 14:55:52 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-27 14:55:52 +0000
commitacbd91c9898808a928af0b1bdd9d5058e8a91f62 (patch)
treef082572bd210424a9f59a29a64d7037e402bd355 /arch/x86_64/src/memory/allocator
parent38e87d52891429d56d20a54ce205d1e421068f36 (diff)
downloadkernel-acbd91c9898808a928af0b1bdd9d5058e8a91f62.tar.xz
kernel-acbd91c9898808a928af0b1bdd9d5058e8a91f62.zip
Add typedef for virtual / physical addresses
Diffstat (limited to 'arch/x86_64/src/memory/allocator')
-rw-r--r--arch/x86_64/src/memory/allocator/physical_frame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/allocator/physical_frame.cpp b/arch/x86_64/src/memory/allocator/physical_frame.cpp
index 03bd965..b05254b 100644
--- a/arch/x86_64/src/memory/allocator/physical_frame.cpp
+++ b/arch/x86_64/src/memory/allocator/physical_frame.cpp
@@ -8,7 +8,7 @@ namespace teachos::arch::memory::allocator
// Nothing to do
}
- auto physical_frame::containing_address(std::size_t address) -> physical_frame
+ auto physical_frame::containing_address(physical_address address) -> physical_frame
{
return physical_frame{address / PAGE_FRAME_SIZE};
}