summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Volynets <iluxa@gentoo.org>2004-06-05 01:47:46 +0000
committerIlya Volynets <iluxa@gentoo.org>2004-06-05 01:47:46 +0000
commit5d0403b9db95bfe58e9196c31997eedc97869881 (patch)
treed9a79e5595771bafb70e2e4430ebb83419de5b5b /sys-libs/glibc/files/2.3.4
parentAdded ~sparc keywords to help resolve bug #53019. (Manifest recommit) (diff)
downloadgentoo-2-5d0403b9db95bfe58e9196c31997eedc97869881.tar.gz
gentoo-2-5d0403b9db95bfe58e9196c31997eedc97869881.tar.bz2
gentoo-2-5d0403b9db95bfe58e9196c31997eedc97869881.zip
Finalize n32 fixes. Add ALT_HEADERS variable
Diffstat (limited to 'sys-libs/glibc/files/2.3.4')
-rw-r--r--sys-libs/glibc/files/2.3.4/mips-sysdep-cancel.diff54
1 files changed, 54 insertions, 0 deletions
diff --git a/sys-libs/glibc/files/2.3.4/mips-sysdep-cancel.diff b/sys-libs/glibc/files/2.3.4/mips-sysdep-cancel.diff
new file mode 100644
index 000000000000..0e70b8ddf1ad
--- /dev/null
+++ b/sys-libs/glibc/files/2.3.4/mips-sysdep-cancel.diff
@@ -0,0 +1,54 @@
+Index: linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h
+===================================================================
+RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h,v
+retrieving revision 1.2
+diff -u -r1.2 sysdep-cancel.h
+--- linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h 28 Jul 2003 18:45:37 -0000 1.2
++++ linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h 1 Jun 2004 17:19:08 -0000
+@@ -27,9 +27,6 @@
+ #ifdef __PIC__
+ # undef PSEUDO
+ # define PSEUDO(name, syscall_name, args) \
+- .align 2; \
+- 99: la t9,__syscall_error; \
+- jr t9; \
+ ENTRY (name) \
+ .set noreorder; \
+ .cpload t9; \
+@@ -44,25 +41,25 @@
+ ret; \
+ L(pseudo_cancel): \
+ SAVESTK_##args; \
+- sw ra, 28(sp); \
+- sw gp, 32(sp); \
++ sw gp, 28(sp); \
++ sw ra, 32(sp); \
+ PUSHARGS_##args; /* save syscall args */ \
+ CENABLE; \
+- lw gp, 32(sp); \
+- sw v0, 44(sp); /* save mask */ \
++ lw gp, 28(sp); \
++ sw v0, 36(sp); /* save mask */ \
+ POPARGS_##args; /* restore syscall args */ \
+ .set noreorder; \
+ li v0, SYS_ify (syscall_name); \
+ syscall; \
+ .set reorder; \
+- sw v0, 36(sp); /* save syscall result */ \
+- sw a3, 40(sp); /* save syscall error flag */ \
+- lw a0, 44(sp); /* pass mask as arg1 */ \
++ sw v0, 40(sp); /* save syscall result */ \
++ sw a3, 44(sp); /* save syscall error flag */ \
++ lw a0, 36(sp); /* pass mask as arg1 */ \
+ CDISABLE; \
+- lw gp, 32(sp); \
+- lw v0, 36(sp); /* restore syscall result */ \
+- lw a3, 40(sp); /* restore syscall error flag */ \
+- lw ra, 28(sp); /* restore return address */ \
++ lw gp, 28(sp); \
++ lw v0, 40(sp); /* restore syscall result */ \
++ lw a3, 44(sp); /* restore syscall error flag */ \
++ lw ra, 32(sp); /* restore return address */ \
+ RESTORESTK; \
+ bne a3, zero, SYSCALL_ERROR_LABEL; \
+ L(pseudo_end):