[Zion] Free memory that was allocated with the slab allocator.

This reduces the number of active allocs by ~ 200.
Size 8: 142 -> 2
Size 16: 319 > 313
Size 32: 364-> 312
This commit is contained in:
Drew Galbraith 2023-11-15 12:53:14 -08:00
parent 6d27ee5dc5
commit 659f122c9e
6 changed files with 50 additions and 15 deletions

View file

@ -23,7 +23,7 @@ extern "C" void zion() {
early_dbgln("[boot] Init Physical Memory Manager.");
phys_mem::InitBootstrapPageAllocation();
KernelHeap heap(0xFFFFFFFF'60000000, 0xFFFFFFFF'80000000);
KernelHeap heap;
phys_mem::InitPhysicalMemoryManager();
heap.InitializeSlabAllocators();
phys_mem::DumpRegions();