mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 19:13:34 +08:00
2003-05-30 Guido Guenther <agx@sigxcpu.org>
* 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.
This commit is contained in:
parent
50794a453b
commit
cb76029b4d
@ -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
|
||||
|
@ -220,7 +220,7 @@
|
||||
".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; \
|
||||
@ -248,7 +248,7 @@
|
||||
".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; \
|
||||
|
@ -220,7 +220,7 @@
|
||||
".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; \
|
||||
@ -248,7 +248,7 @@
|
||||
".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; \
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user