Added very simple kernel memory allocator

This commit is contained in:
2021-04-17 01:18:14 -05:00
parent b582c39ff8
commit b141582f40
3 changed files with 44 additions and 1 deletions

9
include/allocator.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include <stddef.h>
void initialize_allocator(void *bottom, void *top);
void *allocate_from_bottom(size_t size);
void *allocate_from_top(size_t size);