diff options
author | Marvin Borner | 2020-11-26 14:04:50 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-26 14:04:50 +0100 |
commit | 3288fc6ad2119828c028846ebfdd9cdc8c94af83 (patch) | |
tree | 551049651a828418f4ae4f8f0c98c724449c8b57 /libc/inc/mem.h | |
parent | 19a7f913dae543f7adf3ff1de1a41899c1087692 (diff) |
Added userspace heap
Diffstat (limited to 'libc/inc/mem.h')
-rw-r--r-- | libc/inc/mem.h | 5 |
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 |