This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Swap args in DO_CALL


All other i386 DO_CALLs, including the default one, have syscall_name as
the first arg. The Linux is the only exception. This patch makes it
consistent on i386.


H.J.
----
2001-06-29  H.J. Lu  <hjl@gnu.org>

	* sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Swap args.

--- sysdeps/unix/sysv/linux/i386/sysdep.h.call	Mon Jun 26 18:52:26 2000
+++ sysdeps/unix/sysv/linux/i386/sysdep.h	Fri Jun 29 17:39:31 2001
@@ -61,7 +61,7 @@
 #define	PSEUDO(name, syscall_name, args)				      \
   .text;								      \
   ENTRY (name)								      \
-    DO_CALL (args, syscall_name);					      \
+    DO_CALL (syscall_name, args);					      \
     cmpl $-4095, %eax;							      \
     jae SYSCALL_ERROR_LABEL;						      \
   L(pseudo_end):
@@ -153,7 +153,7 @@
    other processors though.  */
 
 #undef	DO_CALL
-#define DO_CALL(args, syscall_name)			      		      \
+#define DO_CALL(syscall_name, args)			      		      \
     PUSHARGS_##args							      \
     DOARGS_##args							      \
     movl $SYS_ify (syscall_name), %eax;					      \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]