aboutsummaryrefslogtreecommitdiff
path: root/libc/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/alloc.c')
-rw-r--r--libc/alloc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/alloc.c b/libc/alloc.c
index be986dc..8522203 100644
--- a/libc/alloc.c
+++ b/libc/alloc.c
@@ -24,17 +24,14 @@ static int liballoc_free(void *ptr, u32 p)
#include <sys.h>
-#define sys_alloc(size) (void *)sys1(SYS_ALLOC, size)
-#define sys_free(ptr, size) (u32) sys2(SYS_FREE, ptr, size)
-
static void *liballoc_alloc(u32 p)
{
- return sys_alloc((u32)p);
+ return sys_alloc(p);
}
static int liballoc_free(void *ptr, u32 p)
{
- sys_free((u32)ptr, (u32)p);
+ sys_free(ptr, p);
return 0;
}