omos-tcnj2024/sys/memory.c

23 lines
293 B
C
Raw Normal View History

2024-02-18 00:18:23 +01:00
#include <memory.h>
2024-02-18 01:20:00 +01:00
void *
malloc(s32 size)
{
s32 actual_size = size + sizeof(s32) + sizeof(void *);
if (start == NULL) {
start = (void *) START;
start[0] = '\0';
start[1] = '\0';
start[2] = '\0';
start[3] = '\0';
SIZE(m) = size;
return USABLE(m);
}
/* TODO */
}