svn commit: trunk/uClibc/libc/sysdeps/linux/mips

aldot at uclibc.org aldot at uclibc.org
Fri Oct 24 16:33:36 UTC 2008


Author: aldot
Date: 2008-10-24 09:33:36 -0700 (Fri, 24 Oct 2008)
New Revision: 23780

Log:
- fix mips syscall (Atsushi Nemoto)


Modified:
   trunk/uClibc/libc/sysdeps/linux/mips/syscall.S


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/mips/syscall.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/mips/syscall.S	2008-10-24 11:07:20 UTC (rev 23779)
+++ trunk/uClibc/libc/sysdeps/linux/mips/syscall.S	2008-10-24 16:33:36 UTC (rev 23780)
@@ -32,7 +32,6 @@
 #ifdef __PIC__
 	SETUP_GP
 #endif
-	.set noreorder
 	move	v0, a0		/* Load system call number from first arg.  */
 	move	a0, a1		/* Move the next three args up a register.  */
 	move	a1, a2
@@ -59,12 +58,12 @@
 	lw	v0,7*4(sp)	/* for system call restarts */
 #endif
 	syscall			/* Do the system call.  */
-	bnez	a3, 1f
 #ifdef __mips64
 	daddiu	sp,sp,16
 #else
 	addiu	sp,sp,32
 #endif
+	bnez	a3, 1f
      	j ra			/* Return to caller.  */
 1:
 	move	a0,v0		/* Pass return val to C function. */




More information about the uClibc-cvs mailing list