From 40e67a6dba7837c562613016bdc8bad17d069e57 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 29 Oct 2025 12:24:41 +0100 Subject: x86_64/memory: fix region allocator initialization During construction, the memory map was not extracted from the supplied memory information. This lead to a situation in which the allocator would never allocate any frames since it believed that there was no memory in the system. --- arch/x86_64/src/memory/region_allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86_64/src/memory/region_allocator.cpp b/arch/x86_64/src/memory/region_allocator.cpp index d94e810..13103c7 100644 --- a/arch/x86_64/src/memory/region_allocator.cpp +++ b/arch/x86_64/src/memory/region_allocator.cpp @@ -26,7 +26,7 @@ namespace teachos::memory::x86_64 region_allocator::region_allocator(memory_information const & mem_info) : m_next_frame{} , m_current_region{} - , m_memory_map{} + , m_memory_map{mem_info.memory_map} , m_kernel_start(frame::containing(mem_info.image_range.first)) , m_kernel_end(frame::containing(mem_info.image_range.second)) , m_multiboot_start(frame::containing(mem_info.mbi_range.first)) -- cgit v1.2.3