Added a PhysicalMemoryManager class.

Stores a linkedlist of free blocks of PhysicalMemory.
This commit is contained in:
Drew Galbraith 2023-05-18 11:34:45 -07:00
parent 4380590af2
commit fa2bb4df89
2 changed files with 72 additions and 1 deletions

View file

@ -14,7 +14,8 @@ extern "C" void zion() {
phys_mem::InitBootstrapPageAllocation();
KernelHeap heap(0xFFFFFFFF'40000000, 0xFFFFFFFF'80000000);
heap.Allocate(1);
phys_mem::InitPhysicalMemoryManager();
heap.Allocate(0x2000);
dbgln("Sleeping!");
while (1)