diff options
Diffstat (limited to 'libc/inc')
-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 |