DEBUG with Capital Letters

This commit is contained in:
2026-03-11 15:24:45 +01:00
parent 1dd4e728d4
commit 9d409317e2
7 changed files with 34 additions and 42 deletions

View File

@@ -141,7 +141,6 @@ void paging_init()
{
max_phys = top;
}
//DEBUG("max_phys=0x%p", max_phys);
}
// 4GB
@@ -187,15 +186,7 @@ void paging_init()
}
DEBUG("Mapped %u pages for framebuffer", page_count);
// test for flanterm
// When 10 pages are mapped, SOMETIMES (1 out of 50 times) it prints everything without problem!
// Other times it prints garbage (almost full cursors) and/or panics.
/* for (uint64_t i=0; i<10; i++)
{
paging_map_page(kernel_pml4, 0, kernel_phys_base+KERNEL_SIZE+i*PAGE_SIZE, PTE_WRITABLE);
} */
// Finally, we load the physical address of our PML4 (root table) into cr3
load_cr3(VIRT_TO_PHYS(kernel_pml4));
DEBUG("cr3 loaded, we're still alive");
DEBUG("Loaded kernel PML4 into CR3");
}