Move malloc into kutil

This commit is contained in:
Justin C. Miller
2018-05-10 09:49:57 -07:00
parent 045bede481
commit a1bc76f305
6 changed files with 46 additions and 35 deletions

9
src/kernel/allocator.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include "kutil/memory_manager.h"
kutil::memory_manager g_kernel_memory_manager;
// kutil malloc/free implementation
namespace kutil {
void * malloc(size_t n) { return g_kernel_memory_manager.allocate(n); }
void free(void *p) { g_kernel_memory_manager.free(p); }
}