diff options
author | Danny Holman <dholman@gymli.org> | 2023-11-26 18:51:37 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2023-11-26 18:51:37 -0600 |
commit | 6b399c882d7d6b8a548f8739ef35bc11e576a47a (patch) | |
tree | 9d7112dd3cdd28d6954b016e73c1759bbd817d1e /include | |
parent | 2740284a344209146fdc9b9fd852f277616e1fba (diff) |
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 <dholman@gymli.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel/mem.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <kernel/alloc.h> +#include <kernel/paging.h> +#include <stddef.h> + +void* kmalloc(size_t sz); + +#endif |