diff options
author | Anton Kling <anton@kling.gg> | 2024-05-06 01:29:26 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-05-06 01:29:26 +0200 |
commit | 09fea28328f2fdc2f95bac1905b2a829fbabab1a (patch) | |
tree | 4370d385e934a698fcd2ce0b7fc1d426506627ee /kernel/kmalloc.h | |
parent | 850596bd3374de20dd7b71bac27d351a975f772a (diff) |
kmalloc: Add debug kmalloc
Diffstat (limited to 'kernel/kmalloc.h')
-rw-r--r-- | kernel/kmalloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/kmalloc.h b/kernel/kmalloc.h index 9ea67d7..9c03a19 100644 --- a/kernel/kmalloc.h +++ b/kernel/kmalloc.h @@ -1,7 +1,6 @@ -#include <log.h> -#include <mmu.h> +#ifndef KMALLOC_H +#define KMALLOC_H #include <stddef.h> -#include <string.h> #include <typedefs.h> void *kmalloc_align(size_t s, void **physical); @@ -17,3 +16,4 @@ void *kcalloc(size_t nelem, size_t elsize); void *krecalloc(void *ptr, size_t nelem, size_t elsize); void kfree(void *p); int init_heap(void); +#endif |