From fef210554b33979748d8fdae6e35266857df460a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 23 Jan 2006 22:42:17 +0000 Subject: fix building with gcc4 --- libc/sysdeps/linux/m68k/syscall.c | 44 ++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 24 deletions(-) (limited to 'libc/sysdeps/linux/m68k') diff --git a/libc/sysdeps/linux/m68k/syscall.c b/libc/sysdeps/linux/m68k/syscall.c index 1d09962e5..d05b7dd19 100644 --- a/libc/sysdeps/linux/m68k/syscall.c +++ b/libc/sysdeps/linux/m68k/syscall.c @@ -1,6 +1,7 @@ /* syscall for m68k/uClibc * - * Copyright (C) 2005 by Christian Magnusson + * Copyright (C) 2005-2006 by Christian Magnusson + * Copyright (C) 2005-2006 Erik Andersen * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Library General Public License as published by @@ -16,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - + #include #include #include @@ -24,26 +25,21 @@ long syscall(long sysnum, long a, long b, long c, long d, long e, long f) { - long __res; - __asm__ __volatile__ ("movel %7, %%a0\n\t"\ - "movel %6, %%d5\n\t"\ - "movel %5, %%d4\n\t"\ - "movel %4, %%d3\n\t"\ - "movel %3, %%d2\n\t"\ - "movel %2, %%d1\n\t"\ - "movel %1, %%d0\n\t"\ - "trap #0\n\t"\ - "movel %%d0, %0"\ - : "=g" (__res)\ - : "g" (sysnum),\ - "a" ((long)a),\ - "a" ((long)b),\ - "a" ((long)c),\ - "a" ((long)d),\ - "a" ((long)e),\ - "g" ((long)f)\ - : "cc", "%d0", "%d1", "%d2", "%d3",\ - "%d4", "%d5", "%a0"); - - __syscall_return(long,__res); + long __res; + __asm__ __volatile__ ( + "movel %7, %%a0\n\t" + "movel %6, %%d5\n\t" + "movel %5, %%d4\n\t" + "movel %4, %%d3\n\t" + "movel %3, %%d2\n\t" + "movel %2, %%d1\n\t" + "movel %1, %%d0\n\t" + "trap #0\n\t" + "movel %%d0, %0" + : "=g" (__res) + : "g" (sysnum), + "g" ((long)a), "g" ((long)b), "g" ((long)c), + "g" ((long)d), "g" ((long)e), "g" ((long)f) + : "cc", "%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%a0"); + __syscall_return(long,__res); } -- cgit v1.2.3