diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-14 13:27:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-14 13:27:46 +0000 |
commit | 3e8c046f98134be9c6ddd954141b6b13bf919199 (patch) | |
tree | ebb0dd6986b5baa76b7fef83121b5e9ca9a383f8 /libc/sysdeps/linux/arm/brk.c | |
parent | 78b940333901de079d3a0de702441530939ec501 (diff) |
import thumb support from jbowler in Bug 385
Diffstat (limited to 'libc/sysdeps/linux/arm/brk.c')
-rw-r--r-- | libc/sysdeps/linux/arm/brk.c | 9 |
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; |