Added very simple kernel memory allocator
This commit is contained in:
9
include/allocator.h
Normal file
9
include/allocator.h
Normal 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);
|
||||
Reference in New Issue
Block a user