tabs/kernel/memory.c

13 lines
218 B
C
Raw Normal View History

2020-01-08 21:36:49 +00:00
#ifndef MEMORY_C
#define MEMORY_C
2020-01-07 13:53:27 +00:00
#include <stddef.h>
2020-01-08 21:36:49 +00:00
void* _curr_end = (void*) 0x200000;
2020-01-07 13:53:27 +00:00
void* alloc(size_t size) {
void* thanks_jp = _curr_end;
_curr_end += size;
return thanks_jp;
2020-01-08 21:36:49 +00:00
}
#endif // MEMORY_C