1 /* Define the machine-dependent type `jmp_buf'. MIPS version.
2 Copyright (C) 1992, 1993, 1995, 1997, 2000, 2002, 2003, 2004
3 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
29 #if _MIPS_SIM == _MIPS_SIM_ABI32
30 /* Program counter. */
36 /* Callee-saved registers s0 through s7. */
39 /* The frame pointer. */
42 /* The global pointer. */
45 /* Program counter. */
46 __extension__
long long __pc
;
49 __extension__
long long __sp
;
51 /* Callee-saved registers s0 through s7. */
52 __extension__
long long __regs
[8];
54 /* The frame pointer. */
55 __extension__
long long __fp
;
57 /* The global pointer. */
58 __extension__
long long __gp
;
61 /* Floating point status register. */
64 /* Callee-saved floating point registers. */
65 #if _MIPS_SIM == _MIPS_SIM_ABI64
73 /* Offset to the program counter in `jmp_buf'. */
78 /* Test if longjmp to JMPBUF would unwind the frame
79 containing a local variable at ADDRESS. */
80 #define _JMPBUF_UNWINDS(jmpbuf, address) \
81 ((void *) (address) < (jmpbuf)[0].__sp)