aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/mem.h
diff options
context:
space:
mode:
authorMarvin Borner2020-11-26 14:04:50 +0100
committerMarvin Borner2020-11-26 14:04:50 +0100
commit3288fc6ad2119828c028846ebfdd9cdc8c94af83 (patch)
tree551049651a828418f4ae4f8f0c98c724449c8b57 /libc/inc/mem.h
parent19a7f913dae543f7adf3ff1de1a41899c1087692 (diff)
Added userspace heap
Diffstat (limited to 'libc/inc/mem.h')
-rw-r--r--libc/inc/mem.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/inc/mem.h b/libc/inc/mem.h
index 964b24b..15505fd 100644
--- a/libc/inc/mem.h
+++ b/libc/inc/mem.h
@@ -13,9 +13,8 @@ void heap_init(u32 start);
void *malloc(u32 size);
void free(void *ptr);
#elif defined(userspace)
-#include <sys.h>
-#define malloc(n) (void *)sys1(SYS_MALLOC, n)
-#define free(ptr) (void)(sys1(SYS_FREE, (int)ptr))
+void *malloc(u32 size);
+void free(void *ptr);
#else
#error "No lib target specified. Please use -Dkernel or -Duserspace"
#endif