Use panic macro where suitable

This commit is contained in:
Imbus 2025-09-02 00:17:58 +02:00
parent 6c21ac7669
commit 0d8a1af1ff
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ void kfree(void *pa) {
// Assert that page is a ligned to a page boundary and that its correctly
// sized
if (((u64)pa % PGSIZE) != 0 || (char *)pa < kernel_end || (u64)pa >= PHYSTOP)
panic("kfree");
PANIC("kfree");
// Fill with junk to catch dangling refs.
memset(pa, 1, PGSIZE);