From 783107dbed9ac48f3db147f4ed6cf7a9aa75418e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 15 Sep 2007 11:02:36 +0000 Subject: use gcc input constraints to avoid often duplicated reloads when making syscalls --- libc/sysdeps/linux/bfin/brk.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/bfin/brk.c') 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; -- cgit v1.2.3