fix(kernel/memory): correct bitmap address calculation

This commit is contained in:
2025-04-08 02:31:40 +00:00
parent eb89b060f6
commit 3d87345a51
4 changed files with 45 additions and 63 deletions

View File

@ -340,7 +340,7 @@ NIF void InitializeMemoryManagement()
KernelAllocator.Init();
debug("Memory Info:\n\n%lld MiB / %lld MiB (%lld MiB reserved)\n",
TO_MiB(KernelAllocator.GetUsedMemory()),
TO_MiB(KernelAllocator.GetTotalMemory()),
TO_MiB(KernelAllocator.GetTotalMemory() - KernelAllocator.GetReservedMemory()),
TO_MiB(KernelAllocator.GetReservedMemory()));
/* -- Debugging --
@ -361,8 +361,7 @@ NIF void InitializeMemoryManagement()
CreatePageTable(KernelPageTable);
trace("Applying new page table from address %#lx",
KernelPageTable);
trace("Applying new page table from address %#lx", KernelPageTable);
CPU::PageTable(KernelPageTable);
debug("Page table updated.");