Added register dump to panic() and colors to printk()

This commit is contained in:
2026-03-29 20:39:06 +02:00
parent 12ec371196
commit 22852599df
10 changed files with 66 additions and 34 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void* pmm_alloc() {
if (pmm_head == NULL) return ERR_PTR(-ENOMEM);
uint64_t* addr = pmm_head;
if ((uintptr_t)addr % PAGE_SIZE != 0) panic("pmm_head corrupted.");
if ((uintptr_t)addr % PAGE_SIZE != 0) panic(NULL, "pmm_head corrupted.");
pmm_head = (uint64_t*)(*addr);
pmm_free_pages--;