1 /* Copyright (C) 1997, 1999, 2000, 2003, 2005, 2006
2 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 #ifndef _BITS_SETJMP_H
21 #define _BITS_SETJMP_H 1
23 #if !defined _SETJMP_H && !defined _PTHREAD_H
24 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
27 #include <bits/wordsize.h>
32 typedef struct __sparc64_jmp_buf
34 struct __sparc64_jmp_buf *uc_link;
35 unsigned long uc_flags;
36 unsigned long uc_sigmask;
37 struct __sparc64_jmp_buf_mcontext
39 unsigned long mc_gregs[19];
42 struct __sparc64_jmp_buf_fpu
46 unsigned int sregs[32];
47 unsigned long dregs[32];
48 long double qregs[16];
50 unsigned long mcfpu_fprs;
51 unsigned long mcfpu_gsr;
53 unsigned char mcfpu_qcnt;
54 unsigned char mcfpu_qentsz;
55 unsigned char mcfpu_enab;
61 /* Test if longjmp to JMPBUF would unwind the frame
62 containing a local variable at ADDRESS. */
63 #define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
64 ((unsigned long int) (address) < (jmpbuf)->uc_mcontext.mc_fp + 2047)
68 #if defined __USE_MISC || defined _ASM
75 typedef int __jmp_buf[3];
78 /* Test if longjmp to JMPBUF would unwind the frame
79 containing a local variable at ADDRESS. */
80 #define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
81 ((int) (address) < demangle ((jmpbuf)[JB_SP]))
85 #endif /* bits/setjmp.h */