From f6e543b64dbea75facac955369a9dc2d733c29e7 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 1 Oct 2025 02:53:03 +0200 Subject: [PATCH] Free the freelist allocation in start.c test, better logging messages --- kern/start.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kern/start.c b/kern/start.c index 0e42fdd..3c9f0ba 100644 --- a/kern/start.c +++ b/kern/start.c @@ -70,13 +70,13 @@ void start() { fl_init(&fl, (uintptr_t)mem, 4096, sizeof(int)); uint32_t *hello = fl_alloc(&fl); - *hello = UINT32_MAX; + fl_free(&fl, hello); int a = fl_available(&fl); assert_msg(fl_check(&fl) > 0, "FreeList checking failed, might be corrupt."); - kprintf("Available: %d\n", a); - kprintf("Size: %d\n", fl.size); + kprintf("Freelist available: %d\n", a); + kprintf("Freelist item size: %d\n", fl.size); buddy_free(mem); }