]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2000-04-13 Andreas Jaeger <aj@suse.de>
authorAndreas Jaeger <aj@suse.de>
Thu, 13 Apr 2000 19:46:02 +0000 (19:46 +0000)
committerAndreas Jaeger <aj@suse.de>
Thu, 13 Apr 2000 19:46:02 +0000 (19:46 +0000)
* sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
default.

* sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
with some applications.
Patches by Ralf Baechle <ralf@uni-koblenz.de>.

* sysdeps/mips/bsd-setjmp.S: Use __PIC__.
* sysdeps/mips/bsd-_setjmp.S: Likewise.
* sysdeps/mips/setjmp.S: Likewise.

sysdeps/mips/__longjmp.c
sysdeps/mips/bsd-_setjmp.S
sysdeps/mips/bsd-setjmp.S
sysdeps/mips/setjmp.S
sysdeps/unix/mips/pipe.S

index e9ef5cff3dd010666c4514a37e79a64e19c645c3..a1920ca257ee1fa5b0093ade38e42d3608889ac3 100644 (file)
@@ -69,7 +69,7 @@ __longjmp (env, val_arg)
   asm volatile ("lw $23, %0" : : "m" (env[0].__regs[7]));
 
   /* Get the PC.  */
-  asm volatile ("lw $31, %0" : : "m" (env[0].__pc));
+  asm volatile ("lw $25, %0" : : "m" (env[0].__pc));
 
   /* Give setjmp 1 if given a 0, or what they gave us if non-zero.  */
   if (val == 0)
@@ -77,7 +77,7 @@ __longjmp (env, val_arg)
   else
     asm volatile ("move $2, %0" : : "r" (val));
 
-  asm volatile ("j $31");
+  asm volatile ("jr $25");
 
   /* Avoid `volatile function does return' warnings.  */
   for (;;);
index 6d841fc237fe343f6a9f66614ba06795785f6676..bf7cb159fa7538b351c02d7e9821e2f0de268c6c 100644 (file)
@@ -1,5 +1,5 @@
 /* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'.  MIPS version.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 #include <sysdep.h>
 
-#ifdef PIC
+#ifdef __PIC__
        .option pic2
 #endif
 ENTRY (_setjmp)
        .set noreorder
-#ifdef PIC
+#ifdef __PIC__
        .cpload t9
        la      t9, C_SYMBOL_NAME (__sigsetjmp)
        jr      t9
index 000aee436ae4251489c0d2ac9d1f0145ae3c8c7f..bab312b0dfac75099cf480de865ba3bff712eb51 100644 (file)
@@ -1,5 +1,5 @@
 /* BSD `setjmp' entry point to `sigsetjmp (..., 1)'.  MIPS version.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 #include <sysdep.h>
 
-#ifdef PIC
+#ifdef __PIC__
        .option pic2
 #endif
 ENTRY (setjmp)
        .set    noreorder
-#ifdef PIC
+#ifdef __PIC__
        .cpload t9
        la      t9, C_SYMBOL_NAME (__sigsetjmp)
        jr      t9
index 607b5f268d92cb1362a5ea87e187491b908728a7..804b27e897c4cc0d8ace01c1baeb0c1a9d076d25 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 /* The function __sigsetjmp_aux saves all the registers, but it can't
    reliably access the stack or frame pointers, so we pass them in as
    extra arguments.  */
-#ifdef PIC
+#ifdef __PIC__
        .option pic2
 #endif
 ENTRY (__sigsetjmp)
-#ifdef PIC
+#ifdef __PIC__
        .set    noreorder
        .cpload t9
        .set    reorder
@@ -36,7 +36,7 @@ ENTRY (__sigsetjmp)
 #else
        move    a3, $fp
 #endif
-#ifdef PIC
+#ifdef __PIC__
        la      t9, __sigsetjmp_aux
        jr      t9
 #else
index dac617461d3c4adc75b14dbde2e2f6b7baf1fccf..7066ac71cecf5e393d91c786f08be86491c840f0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1995, 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Brendan Kehoe (brendan@zen.org).
 
@@ -25,9 +25,8 @@ SYSCALL__ (pipe, 1)
        sw v1, 4(a0)
 
        /* Go out with a clean status.  */
-       j ra
        move v0, zero
-       nop
+       j ra
        .end __pipe
 
 weak_alias (__pipe, pipe)