1994-12-05 02:07:13 +08:00
|
|
|
/* Copyright (C) 1992, 1994 Free Software Foundation, Inc.
|
1992-11-25 11:28:54 +08:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
|
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
|
|
|
Cambridge, MA 02139, USA. */
|
|
|
|
|
|
|
|
#include <sysdep.h>
|
|
|
|
|
1994-12-05 02:07:13 +08:00
|
|
|
/* The function __sigsetjmp_aux saves all the registers, but it can't
|
1992-11-25 11:28:54 +08:00
|
|
|
reliably access the stack or frame pointers, so we pass them in as
|
|
|
|
extra arguments. */
|
1994-12-05 02:07:13 +08:00
|
|
|
ENTRY (__sigsetjmp)
|
Wed May 22 00:40:50 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
sysdeps/alpha/bsd-setjmp.S, sysdeps/alpha/ffs.S,
sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/pipe.S,
sysdeps/unix/sysv/linux/sigsuspend.S,
sysdeps/unix/sysv/linux/alpha/syscall.S,
sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
framesize declaration. Replace "lda pv,sym/jsr pv" by "jsr sym".
Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/alpha/setjmp.S: Must establish global pointer before
address of __sigsetjmp_aux can be loaded.
1996-05-23 13:33:05 +08:00
|
|
|
ldgp $29, 0($27)
|
|
|
|
.prologue 1
|
|
|
|
|
|
|
|
lda $27, __sigsetjmp_aux /* Load address to jump to. */
|
|
|
|
bis $30, $30, $18 /* Pass SP as 3rd arg. */
|
|
|
|
bis $15, $15, $19 /* Pass FP as 4th arg. */
|
|
|
|
jmp $31, ($27), __sigsetjmp_aux /* Call __sigsetjmp_aux. */
|
|
|
|
|
1994-12-05 02:07:13 +08:00
|
|
|
.end __sigsetjmp
|