diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-17 21:09:02 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-18 13:02:34 +0200 |
| commit | 14ed096fc5de6844cb116f3319c0d03043d26ea2 (patch) | |
| tree | e78cc753b2d6dcabd703aebc4b9bea1783cc2e6d /arch/x86_64/src/memory/allocator | |
| parent | 891ca8834122e55638d33a129baab7292b8ed6d0 (diff) | |
| download | kernel-14ed096fc5de6844cb116f3319c0d03043d26ea2.tar.xz kernel-14ed096fc5de6844cb116f3319c0d03043d26ea2.zip | |
x86-64: prepare new architecture
Diffstat (limited to 'arch/x86_64/src/memory/allocator')
| -rw-r--r-- | arch/x86_64/src/memory/allocator/physical_frame.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/x86_64/src/memory/allocator/physical_frame.cpp b/arch/x86_64/src/memory/allocator/physical_frame.cpp deleted file mode 100644 index ec387a1..0000000 --- a/arch/x86_64/src/memory/allocator/physical_frame.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "arch/memory/allocator/physical_frame.hpp" - -namespace teachos::arch::memory::allocator -{ - auto physical_frame::containing_address(physical_address address) -> physical_frame - { - return physical_frame{address / PAGE_FRAME_SIZE}; - } - - auto physical_frame::start_address() const -> physical_address { return frame_number * PAGE_FRAME_SIZE; } - - auto physical_frame::operator++(int) -> physical_frame - { - physical_frame const old_value = *this; - ++frame_number; - return old_value; - } - - auto physical_frame::operator++() -> physical_frame & - { - ++frame_number; - return *this; - } -} // namespace teachos::arch::memory::allocator |
