Add additional physical memory logging

This commit is contained in:
Drew Galbraith 2023-06-07 16:22:39 -07:00
parent 53ff49b265
commit 4bd7f972c1
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ class PhysicalMemoryManager {
const limine_memmap_response& memmap = boot::GetMemoryMap();
for (uint64_t i = 0; i < memmap.entry_count; i++) {
const limine_memmap_entry& entry = *memmap.entries[i];
#if K_PHYS_DEBUG
dbgln("Region(%u) at %m:%x", entry.type, entry.base, entry.length);
#endif
if (entry.type == 0) {
uint64_t base = entry.base;
uint64_t size = entry.length;