2003-05-30 Guido Guenther <agx@sigxcpu.org>
authorAndreas Jaeger <aj@suse.de>
Fri, 30 May 2003 17:41:46 +0000 (17:41 +0000)
committerAndreas Jaeger <aj@suse.de>
Fri, 30 May 2003 17:41:46 +0000 (17:41 +0000)
* sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
SETUP_GP64 and friends.
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
names in internal_syscall{6,7}.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
number of syscall arguments.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.

sysdeps/mips/mips64/bsd-_setjmp.S
sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
sysdeps/unix/sysv/linux/mips/pread.c
sysdeps/unix/sysv/linux/mips/pread64.c
sysdeps/unix/sysv/linux/mips/pwrite.c
sysdeps/unix/sysv/linux/mips/pwrite64.c

index 9d79ab0a2f4b530bf0ff12a1cbc0907fa8e76507..73f5cc2de24925508ce76a5827246d0c1810100b 100644 (file)
@@ -22,6 +22,7 @@
    in setjmp doesn't clobber the state restored by longjmp.  */
 
 #include <sysdep.h>
+#include <sys/asm.h>
 
 #ifdef __PIC__
        .option pic2
index 55a405c87e348f8ac1ca3af5036f5bf431d7ca8e..71099711d05afb311765a41ff759122f74cf8d2f 100644 (file)
        ".set\treorder"                                                 \
        : "=r" (__v0), "+r" (__a3)                                      \
        : "r" (__a0), "r" (__a1), "r" (__a2), "i" (SYS_ify(name)),      \
-         "r" (__a5), "r" (__a6)                                        \
+         "r" (__a4), "r" (__a5)                                        \
        : __SYSCALL_CLOBBERS);                                          \
        err = __a3;                                                     \
        _sys_result = __v0;                                             \
        ".set\treorder"                                                 \
        : "=r" (__v0), "+r" (__a3)                                      \
        : "r" (__a0), "r" (__a1), "r" (__a2), "i" (SYS_ify(name)),      \
-         "r" (__a5), "r" (__a6), "r" (__a7)                            \
+         "r" (__a4), "r" (__a5), "r" (__a6)                            \
        : __SYSCALL_CLOBBERS);                                          \
        err = __a3;                                                     \
        _sys_result = __v0;                                             \
index 401470ba23d971a4f85c7bd690dc734c0711231c..4341c183450f3363cc547b1bb1b25efaa7454057 100644 (file)
        ".set\treorder"                                                 \
        : "=r" (__v0), "+r" (__a3)                                      \
        : "r" (__a0), "r" (__a1), "r" (__a2), "i" (SYS_ify(name)),      \
-         "r" (__a5), "r" (__a6)                                        \
+         "r" (__a4), "r" (__a5)                                        \
        : __SYSCALL_CLOBBERS);                                          \
        err = __a3;                                                     \
        _sys_result = __v0;                                             \
        ".set\treorder"                                                 \
        : "=r" (__v0), "+r" (__a3)                                      \
        : "r" (__a0), "r" (__a1), "r" (__a2), "i" (SYS_ify(name)),      \
-         "r" (__a5), "r" (__a6), "r" (__a7)                            \
+         "r" (__a4), "r" (__a5), "r" (__a6)                            \
        : __SYSCALL_CLOBBERS);                                          \
        err = __a3;                                                     \
        _sys_result = __v0;                                             \
index dc278d44013365ca885d6063e92bc2c4229126c2..28fdca6062afcc9d78afc3c5388ddb8ab2baa582 100644 (file)
@@ -66,7 +66,7 @@ __libc_pread (fd, buf, count, offset)
      /* First try the syscall.  */
      assert (sizeof (offset) == 4);
 #if defined _ABI64 && _MIPS_SIM == _ABI64
-     result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count, 0,
                              offset);
 #else
      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
@@ -85,7 +85,7 @@ __libc_pread (fd, buf, count, offset)
   /* First try the syscall.  */
   assert (sizeof (offset) == 4);
 #if defined _ABI64 && _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count, 0,
                           offset);
 #else
   result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
index 12c9cc0ba1b1d52760729b01f734ff24a3893e52..7dcd008ff7914447a4a7e818bfa2d3d469b2e4d0 100644 (file)
@@ -66,7 +66,7 @@ __libc_pread64 (fd, buf, count, offset)
     {
      /* First try the syscall.  */
 #if defined _ABI64 && _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count, 0,
                               offset);
 #else
      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
@@ -85,7 +85,7 @@ __libc_pread64 (fd, buf, count, offset)
 
   /* First try the syscall.  */
 #if defined _ABI64 && _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count, 0,
                           offset);
 #else
   result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
index 1778d077ed4c1afecc13f1f059a313ae906d66a3..fa3de156c404f6ed7d10dbc90e338065e55c07d6 100644 (file)
@@ -65,7 +65,7 @@ __libc_pwrite (fd, buf, count, offset)
       /* First try the syscall.  */
      assert (sizeof (offset) == 4);
 #if defined _ABI64 && _MIPS_SIM == _ABI64
-     result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count, 0,
                              offset);
 #else
      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
@@ -85,7 +85,7 @@ __libc_pwrite (fd, buf, count, offset)
   /* First try the syscall.  */
   assert (sizeof (offset) == 4);
 #if defined _ABI64 && _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count, 0,
                           offset);
 #else
   result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
index e43a37846732f7eec971d3476e9cb71151d384f0..5b481b256c51f336f484679ebc06b383f53bd056 100644 (file)
@@ -63,7 +63,7 @@ __libc_pwrite64 (fd, buf, count, offset)
     {
      /* First try the syscall.  */
 #if defined _ABI64 && _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count, 0,
                               offset);
 #else
      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
@@ -83,7 +83,7 @@ __libc_pwrite64 (fd, buf, count, offset)
 
   /* First try the syscall.  */
 #if defined _ABI64 && _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count, 0,
                           offset);
 #else
   result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,