diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-03 12:20:21 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-03 12:20:21 +0000 |
| commit | 380bc85d1a4fdbef102132c726ef2ac7ac6355da (patch) | |
| tree | d06c9d786fc461af0920e768104be4f583c06fac /arch/x86_64/src/memory/allocator | |
| parent | 756ef3a6d6aa61656dddbfea97482c8698807e39 (diff) | |
| download | kernel-380bc85d1a4fdbef102132c726ef2ac7ac6355da.tar.xz kernel-380bc85d1a4fdbef102132c726ef2ac7ac6355da.zip | |
Make constructor constexpr for basic page and frame types
Diffstat (limited to 'arch/x86_64/src/memory/allocator')
| -rw-r--r-- | arch/x86_64/src/memory/allocator/physical_frame.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86_64/src/memory/allocator/physical_frame.cpp b/arch/x86_64/src/memory/allocator/physical_frame.cpp index 9307602..227745a 100644 --- a/arch/x86_64/src/memory/allocator/physical_frame.cpp +++ b/arch/x86_64/src/memory/allocator/physical_frame.cpp @@ -2,12 +2,6 @@ namespace teachos::arch::memory::allocator { - physical_frame::physical_frame(std::size_t frame_number) - : frame_number(frame_number) - { - // Nothing to do - } - auto physical_frame::containing_address(physical_address address) -> physical_frame { return physical_frame{address / PAGE_FRAME_SIZE}; |
