summaryrefslogtreecommitdiff
path: root/include/kernel
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-02-16 12:53:20 -0600
committerDanny Holman <dholman@gymli.org>2024-02-16 12:53:20 -0600
commit67dba16e46cd0f3f204feae3dc0a95a8c3262ff7 (patch)
tree28c1107a6a1d8e28fb5230c95e97edbd96795fda /include/kernel
parentc95f8d146849ac1a5a0eb550e08b6010ae7234aa (diff)
kernel: mem: kmalloc should not call page allocation
Strip the code calling for the memory manager to allocate pages to kmalloc. The function should just return a raw pointer while a page fault will allocate the required memory. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/kernel')
-rw-r--r--include/kernel/mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kernel/mem.h b/include/kernel/mem.h
index cf162ab..dfbcf23 100644
--- a/include/kernel/mem.h
+++ b/include/kernel/mem.h
@@ -1,9 +1,9 @@
-#ifndef MEM_H
+#ifndef KERNEL_MEM_H
-#include <kernel/alloc.h>
#include <kernel/paging.h>
#include <stddef.h>
+int init_kmalloc(void);
void* kmalloc(size_t sz);
#endif