From aaf7355c5ededfcdc877c7f2989fb1ba02dfb848 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Mon, 27 May 2024 13:53:52 -0500 Subject: libk: create a subset libc for kernel use Create a subset of the C library for use inside the kernel. Signed-off-by: Danny Holman --- include/kernel/kmalloc.h | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 include/kernel/kmalloc.h (limited to 'include/kernel/kmalloc.h') diff --git a/include/kernel/kmalloc.h b/include/kernel/kmalloc.h deleted file mode 100644 index d8debd1..0000000 --- a/include/kernel/kmalloc.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef KERNEL_KMALLOC_H -#define KERNEL_KMALLOC_H - -#include -#include - -struct mem_block { - uintptr_t start; - size_t size; - int alloc; - struct mem_block *next; -}; - -void kmalloc_init(void); -void* kmalloc(size_t sz); -void kfree(void *ptr); - -#endif -- cgit v1.2.3