svn commit: branches/uClibc_0_9_29/libc/sysdeps/linux/mips
vapier at uclibc.org
vapier at uclibc.org
Sat Jan 5 17:27:29 UTC 2008
Author: vapier
Date: 2008-01-05 09:27:28 -0800 (Sat, 05 Jan 2008)
New Revision: 20750
Log:
Merge r19068 by sjhill from trunk:
Fix broken syscall() function since the original patch did not work.
Modified:
branches/uClibc_0_9_29/libc/sysdeps/linux/mips/syscall.S
Changeset:
Modified: branches/uClibc_0_9_29/libc/sysdeps/linux/mips/syscall.S
===================================================================
--- branches/uClibc_0_9_29/libc/sysdeps/linux/mips/syscall.S 2008-01-05 17:27:17 UTC (rev 20749)
+++ branches/uClibc_0_9_29/libc/sysdeps/linux/mips/syscall.S 2008-01-05 17:27:28 UTC (rev 20750)
@@ -29,6 +29,8 @@
.type syscall, at function
.ent syscall
syscall:
+ .set noreorder
+ .cpload t9;
move v0, a0 /* Load system call number from first arg. */
move a0, a1 /* Move the next three args up a register. */
move a1, a2
@@ -55,15 +57,15 @@
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. */
+ move a0,v0 /* Pass return val to C function. */
#ifdef __PIC__
PTR_LA t9, __syscall_error
More information about the uClibc-cvs
mailing list