aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-19 10:52:30 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-19 10:52:30 +0000
commit5dc0e92a7211b44429c1a2e7efe19c146f5c4f9a (patch)
treee0ff7f6e165d7ff7f86fc3f55c45f45fd8bad438 /arch/x86_64/src
parent65718b1470a9b6bfac3520587263c5374f4a4419 (diff)
downloadteachos-5dc0e92a7211b44429c1a2e7efe19c146f5c4f9a.tar.xz
teachos-5dc0e92a7211b44429c1a2e7efe19c146f5c4f9a.zip
Remove deque
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/memory/main.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/x86_64/src/memory/main.cpp b/arch/x86_64/src/memory/main.cpp
index 3041a75..bd094e0 100644
--- a/arch/x86_64/src/memory/main.cpp
+++ b/arch/x86_64/src/memory/main.cpp
@@ -5,7 +5,6 @@
#include "arch/kernel/cpu/msr.hpp"
#include "arch/memory/allocator/area_frame_allocator.hpp"
#include "arch/memory/allocator/concept.hpp"
-#include "arch/memory/allocator/stack_frame_allocator.hpp"
#include "arch/memory/heap/heap_allocator.hpp"
#include "arch/memory/paging/active_page_table.hpp"
#include "arch/memory/paging/kernel_mapper.hpp"
@@ -20,13 +19,6 @@ namespace teachos::arch::memory
return allocator::area_frame_allocator{memory_information};
}
- template<>
- auto create_frame_allocator(multiboot::memory_information const & memory_information)
- -> allocator::stack_frame_allocator
- {
- return allocator::stack_frame_allocator{memory_information};
- }
-
template<allocator::FrameAllocator T>
auto remap_heap(T & allocator, paging::active_page_table & active_table) -> void
{
@@ -52,7 +44,7 @@ namespace teachos::arch::memory
has_been_called = true;
auto const memory_information = multiboot::read_multiboot2();
- auto allocator = create_frame_allocator<allocator::stack_frame_allocator>(memory_information);
+ auto allocator = create_frame_allocator<allocator::area_frame_allocator>(memory_information);
kernel::cpu::set_cr0_bit(kernel::cpu::cr0_flags::WRITE_PROTECT);
kernel::cpu::set_efer_bit(kernel::cpu::efer_flags::NXE);