diff --git a/kern/kalloc.c b/kern/kalloc.c index 88238ee..dead607 100644 --- a/kern/kalloc.c +++ b/kern/kalloc.c @@ -46,6 +46,7 @@ void kfree(void *pa) { if (((u64)pa % PGSIZE) != 0 || (char *)pa < kernel_end || (u64)pa >= PHYSTOP) PANIC("kfree"); + // TODO: Kconfig this // Fill with junk to catch dangling refs. memset(pa, 1, PGSIZE);