[zion] Add a basic slab allocator to the kernel.

Don't free from the slab allocator yet but allocations appear to work.
This commit is contained in:
Drew Galbraith 2023-08-02 00:54:37 -07:00
parent e3a425e274
commit ee603b7478
4 changed files with 169 additions and 2 deletions

View file

@ -25,6 +25,7 @@ extern "C" void zion() {
phys_mem::InitBootstrapPageAllocation();
KernelHeap heap(0xFFFFFFFF'40000000, 0xFFFFFFFF'80000000);
phys_mem::InitPhysicalMemoryManager();
heap.InitializeSlabAllocators();
dbgln("[boot] Memory allocations available now.");