From 67dba16e46cd0f3f204feae3dc0a95a8c3262ff7 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 16 Feb 2024 12:53:20 -0600 Subject: 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 --- include/kernel/mem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 #include #include +int init_kmalloc(void); void* kmalloc(size_t sz); #endif -- cgit v1.2.3