From cbe2690cd5d1b290633c466ebb4df7b64b09b037 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Thu, 28 Mar 2024 21:30:12 -0500 Subject: arch: i386: kernel: add mostly finished PFA and paging system Add the mostly finished physical memory allocator and expose its functions to the paging system. Signed-off-by: Danny Holman --- kernel/mem.c | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 kernel/mem.c (limited to 'kernel/mem.c') diff --git a/kernel/mem.c b/kernel/mem.c deleted file mode 100644 index e977f6a..0000000 --- a/kernel/mem.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -#include - -extern uintptr_t _kernel_end; -static uintptr_t heap_start = (uintptr_t)&_kernel_end; -static uintptr_t heap_end = (uintptr_t)&_kernel_end; - -void* kmalloc(size_t sz) { - void *tmp = heap_end; - heap_end += sz; - return tmp; -} - -void kfree(void *ptr) { -} -- cgit v1.2.3