diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-24 09:17:53 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-24 09:17:53 +0000 |
| commit | 4c44f822eefa743649693e0a49a978291925ddff (patch) | |
| tree | 5a7aa6b9023ae4c52eba059f28bec40f8d0eb855 /arch/x86_64/src/memory/allocator | |
| parent | 27a56b0e828cecaa5a6a40e3f30b5c0e1785aff6 (diff) | |
| download | kernel-4c44f822eefa743649693e0a49a978291925ddff.tar.xz kernel-4c44f822eefa743649693e0a49a978291925ddff.zip | |
Revert: de-templatize paging implementation
Diffstat (limited to 'arch/x86_64/src/memory/allocator')
| -rw-r--r-- | arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp b/arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp index ed000a0..3cdf9c7 100644 --- a/arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp +++ b/arch/x86_64/src/memory/allocator/tiny_frame_allocator.cpp @@ -4,22 +4,6 @@ namespace teachos::arch::memory::allocator { - tiny_frame_allocator::tiny_frame_allocator(frame_allocator & allocator) - : frames{} - { - // Has to be done this way, because constructing the constructor with the data from allocator.allocate_frames(), - // does not work because it would set the value correctly but because we pass it as an std::optional it would not - // set the engaged flag. Meaning the has_value() method would still return false. - for (auto & frame : frames) - { - auto allocated = allocator.allocate_frame(); - if (allocated.has_value()) - { - frame.emplace(allocated.value()); - } - } - } - auto tiny_frame_allocator::allocate_frame() -> std::optional<physical_frame> { for (auto & frame_option : frames) |
