From e5eb42c5555850c121b614c3433916b6dff0b2c3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 4 Dec 1994 18:07:13 +0000 Subject: [PATCH] Implement __sigsetjmp instead of __setjmp; call __sigsetjmp_aux instead of __setjmp_aux. --- sysdeps/alpha/setjmp.S | 12 ++++++------ sysdeps/mips/setjmp.S | 7 +++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/sysdeps/alpha/setjmp.S b/sysdeps/alpha/setjmp.S index 3880d0ffdf..50d75ff859 100644 --- a/sysdeps/alpha/setjmp.S +++ b/sysdeps/alpha/setjmp.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1994 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 @@ -18,12 +18,12 @@ Cambridge, MA 02139, USA. */ #include -/* The function __setjmp_aux saves all the registers, but it can't +/* 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. */ -ENTRY (__setjmp) - lda $27, __setjmp_aux /* Load address to jump to. */ +ENTRY (__sigsetjmp) + lda $27, __sigsetjmp_aux/* Load address to jump to. */ bis $15, $15, $17 /* Pass FP as 2nd arg. */ bis $30, $30, $18 /* Pass SP as 3nd arg. */ - jmp $31, ($27), __setjmp_aux /* Call __setjmp_aux. */ - .end __setjmp + jmp $31, ($27), __sigsetjmp_aux /* Call __sigsetjmp_aux. */ + .end __sigsetjmp diff --git a/sysdeps/mips/setjmp.S b/sysdeps/mips/setjmp.S index 485811e350..fc61e34706 100644 --- a/sysdeps/mips/setjmp.S +++ b/sysdeps/mips/setjmp.S @@ -18,15 +18,14 @@ Cambridge, MA 02139, USA. */ #include -/* The function __setjmp_aux saves all the registers, but it can't +/* 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. */ -ENTRY (__setjmp) +ENTRY (__sigsetjmp) move a1, sp #ifdef __sgi__ move a2, fp #else move a2, $fp #endif - j __setjmp_aux - + j __sigsetjmp_aux -- 2.43.5