From fbef2ef765a851d169d57250387d6b8e885bdb3b Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 15 Jan 2025 13:45:36 +0100 Subject: [PATCH] kfree comment for clarity --- kernel/kalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/kalloc.c b/kernel/kalloc.c index b880933..eddb272 100644 --- a/kernel/kalloc.c +++ b/kernel/kalloc.c @@ -46,6 +46,7 @@ kfree(void *pa) { struct run *r; + // Assert that page is a ligned to a page boundary and that its correctly sized if(((u64)pa % PGSIZE) != 0 || (char *)pa < end || (u64)pa >= PHYSTOP) panic("kfree");