From 6b399c882d7d6b8a548f8739ef35bc11e576a47a Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 26 Nov 2023 18:51:37 -0600 Subject: kernel: mem: add a simple kmalloc implementation Add a simple implementation of kmalloc. This system only works on x86-based processors at the time of commit. Signed-off-by: Danny Holman --- include/kernel/mem.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/kernel/mem.h (limited to 'include/kernel') diff --git a/include/kernel/mem.h b/include/kernel/mem.h new file mode 100644 index 0000000..cf162ab --- /dev/null +++ b/include/kernel/mem.h @@ -0,0 +1,9 @@ +#ifndef MEM_H + +#include +#include +#include + +void* kmalloc(size_t sz); + +#endif -- cgit v1.2.3