diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 11:17:43 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 11:17:43 +0100 |
| commit | 913f40cbf8e578323009c0dcd6a22e99668a0010 (patch) | |
| tree | 97a2892d1f4cdbe99602a2ecf0ced1304e1092fa /arch | |
| parent | bb0637b1639461fdcb59f3bdcc65766e1d9c8e94 (diff) | |
| download | teachos-913f40cbf8e578323009c0dcd6a22e99668a0010.tar.xz teachos-913f40cbf8e578323009c0dcd6a22e99668a0010.zip | |
x86_64/memory: clean up bootstrap allocators
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/kapi/memory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
