]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/mips/bits/setjmp.h
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / mips / bits / setjmp.h
1 /* Define the machine-dependent type `jmp_buf'.  MIPS version.
2    Copyright (C) 1992,93,95,97,2000 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
4
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.
9
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.
14
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, see
17    <http://www.gnu.org/licenses/>.  */
18
19 #ifndef _BITS_SETJMP_H
20 #define _BITS_SETJMP_H  1
21
22 #if !defined _SETJMP_H && !defined _PTHREAD_H
23 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
24 #endif
25
26 #include <sgidefs.h>
27
28 #if _MIPS_SIM == _MIPS_SIM_ABI32
29 #define ptrsize void *
30 #else
31 #define ptrsize long long
32 #endif
33
34 typedef struct
35   {
36     /* Program counter.  */
37     ptrsize __pc;
38
39     /* Stack pointer.  */
40     ptrsize __sp;
41
42     /* Callee-saved registers s0 through s7.  */
43 #if _MIPS_SIM == _MIPS_SIM_ABI32
44     int __regs[8];
45 #else
46     long long __regs[8];
47 #endif
48
49     /* The frame pointer.  */
50     ptrsize __fp;
51
52     /* The global pointer.  */
53     ptrsize __gp;
54
55     /* Floating point status register.  */
56     int __fpc_csr;
57
58     /* Callee-saved floating point registers.  */
59 #if _MIPS_SIM == _MIPS_SIM_ABI64
60     double __fpregs[8];
61 #else /* N32 || O32 */
62     double __fpregs[6];
63 #endif /* N32 || O32 */
64   } __jmp_buf[1];
65
66 #endif  /* bits/setjmp.h */