aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/mips/setjmp.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/mips/setjmp.S b/sysdeps/mips/setjmp.S
index ccba78b47f..485811e350 100644
--- a/sysdeps/mips/setjmp.S
+++ b/sysdeps/mips/setjmp.S
@@ -23,6 +23,10 @@ Cambridge, MA 02139, USA. */
extra arguments. */
ENTRY (__setjmp)
move a1, sp
+#ifdef __sgi__
+ move a2, fp
+#else
move a2, $fp
+#endif
j __setjmp_aux