From b2107f21a80ecaf0116f3a18a090e4cd04f479a8 Mon Sep 17 00:00:00 2001 From: sbosse Date: Sun, 12 Jan 2025 19:30:31 +0100 Subject: [PATCH] Sun 12 Jan 19:29:58 CET 2025 --- kernel/kmalloc.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kernel/kmalloc.h b/kernel/kmalloc.h index d88d961..d307cc0 100644 --- a/kernel/kmalloc.h +++ b/kernel/kmalloc.h @@ -7,6 +7,13 @@ See the file LICENSE for details. #ifndef KMALLOC_H #define KMALLOC_H +struct kmalloc_chunk { + int state; + int length; + struct kmalloc_chunk *next; + struct kmalloc_chunk *prev; +}; + void *kmalloc(int length); void kfree(void *ptr); @@ -14,4 +21,8 @@ void kmalloc_init(char *start, int length); void kmalloc_debug(); int kmalloc_test(); +#ifdef KMALLOC_EXT + #include "kmalloc_ext.h" +#endif + #endif