Add a debug mode for the KernelHeap.

This commit is contained in:
Drew Galbraith 2023-06-07 10:01:22 -07:00
parent 40b21d9c75
commit eb04242a59
4 changed files with 59 additions and 0 deletions

View file

@ -40,6 +40,9 @@ extern "C" void zion() {
dbgln("[boot] Loading sys init program.");
LoadInitProgram();
dbgln("[boot] Allocs during boot:");
heap.DumpDistribution();
dbgln("[boot] Init finished, yielding.");
gScheduler->Enable();
gScheduler->Yield();