From 544acef0986977ef9d3a05d87bb9f55163b1280a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 9 Aug 2020 17:27:08 +0200 Subject: Temporary cpu and serial drivers in libc --- lib/inc/mem.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/inc/mem.h') diff --git a/lib/inc/mem.h b/lib/inc/mem.h index e700e42..e2d574f 100644 --- a/lib/inc/mem.h +++ b/lib/inc/mem.h @@ -5,12 +5,13 @@ #include -u32 HEAP; -u32 HEAP_START; - #define malloc(n) ((void *)((HEAP += n) - n)) // TODO: Implement real/better malloc/free #define free(x) +// TODO: Use malloc as syscall +u32 HEAP; +u32 HEAP_START; + void *memcpy(void *dst, const void *src, u32 n); void *memset(void *dst, int c, u32 n); int memcmp(const void *s1, const void *s2, u32 n); -- cgit v1.2.3