diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-03 11:03:34 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-03 11:03:34 +0000 |
| commit | 9292814545ab5df5aa69d4f75a6d9230f3e03f5b (patch) | |
| tree | 4d3cd879c21e3f14867fce0cb78c7aa73fc812c6 /arch/x86_64/include | |
| parent | d4b1b8a85212f07df47217fe13d86956c7eb064f (diff) | |
| download | teachos-9292814545ab5df5aa69d4f75a6d9230f3e03f5b.tar.xz teachos-9292814545ab5df5aa69d4f75a6d9230f3e03f5b.zip | |
Move possible implementation into cpp
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/memory/allocator/tiny_frame_allocator.hpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/x86_64/include/arch/memory/allocator/tiny_frame_allocator.hpp b/arch/x86_64/include/arch/memory/allocator/tiny_frame_allocator.hpp index b8ed506..a96b743 100644 --- a/arch/x86_64/include/arch/memory/allocator/tiny_frame_allocator.hpp +++ b/arch/x86_64/include/arch/memory/allocator/tiny_frame_allocator.hpp @@ -27,18 +27,7 @@ namespace teachos::arch::memory::allocator * @param allocator Reference to an allocator following the FrameAllocator concept, which is used to allocate * entries *when a new page table is required. */ - tiny_frame_allocator(area_frame_allocator & allocator) - : frames{} - { - for (auto & frame : frames) - { - auto allocated = allocator.allocate_frame(); - if (allocated.has_value()) - { - frame.emplace(allocated.value()); - } - } - } + tiny_frame_allocator(area_frame_allocator & allocator); /** * @brief Allocate memory by finding and returning one of the three free physical frames. |
