summaryrefslogtreecommitdiff
path: root/kernel/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mem.c')
-rw-r--r--kernel/mem.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/kernel/mem.c b/kernel/mem.c
deleted file mode 100644
index 08eb285..0000000
--- a/kernel/mem.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <kernel/mem.h>
-
-extern void *_kernel_end;
-static void *highest_page;
-
-void mem_init() {
- highest_page = &_kernel_end;
-}
-
-void *page_alloc(size_t pages) {
- void *bottom = highest_page;
- highest_page += pages * PAGE_SIZE;
- return bottom;
-}
-
-// frees `pages` consecutive pages starting from *first
-void page_free(void *first, size_t pages) {
- // not implemented
-}