DEBUG with Capital Letters
This commit is contained in:
@@ -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");
|
||||
}
|
||||
@@ -102,8 +102,7 @@ void pmm_init(struct limine_memmap_response* memmap, struct limine_hhdm_response
|
||||
{
|
||||
hhdm_off = hhdm->offset;
|
||||
pmm_find_biggest_usable_region(memmap, hhdm);
|
||||
//pmm_allocate_bitmap(hhdm); too complicated for my small brain
|
||||
|
||||
|
||||
// Now we have biggest USABLE region,
|
||||
// so to populate the free list we just iterate through it
|
||||
pmm_init_freelist();
|
||||
|
||||
Reference in New Issue
Block a user