From 913f40cbf8e578323009c0dcd6a22e99668a0010 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 16 Mar 2026 11:17:43 +0100 Subject: x86_64/memory: clean up bootstrap allocators --- arch/x86_64/kapi/memory.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/x86_64/kapi/memory.cpp') diff --git a/arch/x86_64/kapi/memory.cpp b/arch/x86_64/kapi/memory.cpp index 5cbe65c..6bbfad3 100644 --- a/arch/x86_64/kapi/memory.cpp +++ b/arch/x86_64/kapi/memory.cpp @@ -239,6 +239,10 @@ namespace kapi::memory [](auto const & region) { return region.base + region.size_in_B; })); init_pmm(frame::containing(physical_address{highest_byte}).number() + 1, handoff_to_kernel_pmm); + + kstd::println("[x86_64:MEM] Releasing bootstrap memory allocators."); + allocation_buffer.reset(); + region_based_allocator.reset(); } } // namespace kapi::memory -- cgit v1.2.3