Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / mips / bits / setjmp.h
bloba78f01b398da28a2cc0944b1afdc42658eb555cb
1 /* Define the machine-dependent type `jmp_buf'. MIPS version.
2 Copyright (C) 1992-2015 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, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef _MIPS_BITS_SETJMP_H
20 #define _MIPS_BITS_SETJMP_H 1
22 #if !defined(_SETJMP_H) && !defined(_PTHREAD_H)
23 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
24 #endif
26 #include <sgidefs.h>
28 typedef struct __jmp_buf_internal_tag
30 #if _MIPS_SIM == _ABIO32
31 /* Program counter. */
32 __ptr_t __pc;
34 /* Stack pointer. */
35 __ptr_t __sp;
37 /* Callee-saved registers s0 through s7. */
38 int __regs[8];
40 /* The frame pointer. */
41 __ptr_t __fp;
43 /* The global pointer. */
44 __ptr_t __gp;
45 #else
46 /* Program counter. */
47 __extension__ long long __pc;
49 /* Stack pointer. */
50 __extension__ long long __sp;
52 /* Callee-saved registers s0 through s7. */
53 __extension__ long long __regs[8];
55 /* The frame pointer. */
56 __extension__ long long __fp;
58 /* The global pointer. */
59 __extension__ long long __gp;
60 #endif
62 /* Unused (was floating point status register). */
63 int __glibc_reserved1;
65 /* Callee-saved floating point registers. */
66 #if _MIPS_SIM == _ABI64
67 double __fpregs[8];
68 #else
69 double __fpregs[6];
70 #endif
71 } __jmp_buf[1];
73 #endif /* _MIPS_BITS_SETJMP_H */