Added a PhysicalMemoryManager class.
Stores a linkedlist of free blocks of PhysicalMemory.
This commit is contained in:
parent
4380590af2
commit
fa2bb4df89
2 changed files with 72 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue