summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/bfin/brk.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-09-15 11:02:36 +0000
committerMike Frysinger <vapier@gentoo.org>2007-09-15 11:02:36 +0000
commit783107dbed9ac48f3db147f4ed6cf7a9aa75418e (patch)
treea0e081576d4a86660127740fb6cfde88ebd0aa32 /libc/sysdeps/linux/bfin/brk.c
parentf032afc5fd03f45ecc346b1dbb00b9b3dc0e0e2a (diff)
use gcc input constraints to avoid often duplicated reloads when making syscalls
Diffstat (limited to 'libc/sysdeps/linux/bfin/brk.c')
-rw-r--r--libc/sysdeps/linux/bfin/brk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/bfin/brk.c b/libc/sysdeps/linux/bfin/brk.c
index 620c0b683..64480453e 100644
--- a/libc/sysdeps/linux/bfin/brk.c
+++ b/libc/sysdeps/linux/bfin/brk.c
@@ -19,11 +19,9 @@ int brk (void *addr)
__asm__ __volatile__(
"P0 = %2;\n\t"
- "R0 = %1;\n\t"
"excpt 0;\n\t"
- "%0 = R0;\n\t"
- : "=r"(newbrk)
- : "r"(addr), "i" (__NR_brk): "P0" );
+ : "=q0" (newbrk)
+ : "q0" (addr), "i" (__NR_brk): "P0" );
__curbrk = newbrk;