1 /* Define the machine-dependent type `jmp_buf'. MIPS version.
2 Copyright (C) 1992, 1993, 1995, 1997, 2000, 2002, 2003, 2004, 2005
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
21 #ifndef _MIPS_BITS_SETJMP_H
22 #define _MIPS_BITS_SETJMP_H 1
24 #if !defined(_SETJMP_H) && !defined(_PTHREAD_H)
25 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
32 #if _MIPS_SIM == _ABIO32
33 /* Program counter. */
39 /* Callee-saved registers s0 through s7. */
42 /* The frame pointer. */
45 /* The global pointer. */
48 /* Program counter. */
49 __extension__
long long __pc
;
52 __extension__
long long __sp
;
54 /* Callee-saved registers s0 through s7. */
55 __extension__
long long __regs
[8];
57 /* The frame pointer. */
58 __extension__
long long __fp
;
60 /* The global pointer. */
61 __extension__
long long __gp
;
64 /* Floating point status register. */
67 /* Callee-saved floating point registers. */
68 #if _MIPS_SIM == _ABI64
76 /* Offset to the program counter in `jmp_buf'. */
81 /* Test if longjmp to JMPBUF would unwind the frame
82 containing a local variable at ADDRESS. */
83 #define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
84 ((void *) (address) < (void *) demangle ((jmpbuf)[0].__sp))
86 #endif /* _MIPS_BITS_SETJMP_H */