diff options
author | dzwdz | 2021-07-10 16:37:45 +0200 |
---|---|---|
committer | dzwdz | 2021-07-10 16:37:45 +0200 |
commit | d093a8eea6bfb0ff7e621e9ba3307dae698322aa (patch) | |
tree | 08a5272e2813cf8db8feda4ff91d919cb9ad7330 /kernel/mem.c | |
parent | 1faac72e2514c335e2d5721dce8c9fd1da722062 (diff) |
separate the source code from object files; more modular Makefile
Diffstat (limited to 'kernel/mem.c')
-rw-r--r-- | kernel/mem.c | 19 |
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 -} |