2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / linux / sparc / bits / setjmp.h
blobb44cc0fcd5291ea141010f05dcc86506a7b73330
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
18 02111-1307 USA. */
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."
25 #endif
27 #include <bits/wordsize.h>
29 #if __WORDSIZE == 64
31 #ifndef _ASM
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];
40 unsigned long mc_fp;
41 unsigned long mc_i7;
42 struct __sparc64_jmp_buf_fpu
44 union
46 unsigned int sregs[32];
47 unsigned long dregs[32];
48 long double qregs[16];
49 } mcfpu_fpregs;
50 unsigned long mcfpu_fprs;
51 unsigned long mcfpu_gsr;
52 void *mcfpu_fq;
53 unsigned char mcfpu_qcnt;
54 unsigned char mcfpu_qentsz;
55 unsigned char mcfpu_enab;
56 } mc_fpregs;
57 } uc_mcontext;
58 } __jmp_buf[1];
59 #endif
61 #else
63 #ifndef _ASM
64 typedef int __jmp_buf[3];
65 #endif
67 #endif
69 #endif /* bits/setjmp.h */