chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / ports / sysdeps / mips / bits / setjmp.h
1 /* Define the machine-dependent type `jmp_buf'.  MIPS version.
2    Copyright (C) 1992,1993,1995,1997,2000,2002,2003,2004,2005,2006
3         Free Software Foundation, Inc.
4    This file is part of the GNU C Library.
5
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.
10
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.
15
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
19    02111-1307 USA.  */
20
21 #ifndef _MIPS_BITS_SETJMP_H
22 #define _MIPS_BITS_SETJMP_H 1
23
24 #if !defined(_SETJMP_H) && !defined(_PTHREAD_H)
25 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
26 #endif
27
28 #include <sgidefs.h>
29
30 typedef struct __jmp_buf_internal_tag
31   {
32 #if _MIPS_SIM == _ABIO32
33     /* Program counter.  */
34     __ptr_t __pc;
35
36     /* Stack pointer.  */
37     __ptr_t __sp;
38
39     /* Callee-saved registers s0 through s7.  */
40     int __regs[8];
41
42     /* The frame pointer.  */
43     __ptr_t __fp;
44
45     /* The global pointer.  */
46     __ptr_t __gp;
47 #else
48     /* Program counter.  */
49     __extension__ long long __pc;
50
51     /* Stack pointer.  */
52     __extension__ long long __sp;
53
54     /* Callee-saved registers s0 through s7.  */
55     __extension__ long long __regs[8];
56
57     /* The frame pointer.  */
58     __extension__ long long __fp;
59
60     /* The global pointer.  */
61     __extension__ long long __gp;
62 #endif
63
64     /* Floating point status register.  */
65     int __fpc_csr;
66
67     /* Callee-saved floating point registers.  */
68 #if _MIPS_SIM == _ABI64
69     double __fpregs[8];
70 #else
71     double __fpregs[6];
72 #endif
73   } __jmp_buf[1];
74
75 #endif /* _MIPS_BITS_SETJMP_H */