summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/brk.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/arm/brk.c')
-rw-r--r--libc/sysdeps/linux/arm/brk.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/arm/brk.c b/libc/sysdeps/linux/arm/brk.c
index fa0326a0e..da472194b 100644
--- a/libc/sysdeps/linux/arm/brk.c
+++ b/libc/sysdeps/linux/arm/brk.c
@@ -26,14 +26,7 @@ void *__curbrk = 0;
int brk (void *addr)
{
- void *newbrk;
-
- asm ("mov a1, %1\n" /* save the argment in r0 */
- "swi %2\n" /* do the system call */
- "mov %0, a1;" /* keep the return value */
- : "=r"(newbrk)
- : "r"(addr), "i" (__NR_brk)
- : "a1");
+ void *newbrk = (void*)INTERNAL_SYSCALL(brk, , 1, addr);
__curbrk = newbrk;