Replace FSF snail mail address by URL.
[glibc.git] / sysdeps / mips / bits / setjmp.h
blobdf6fd7b2d72bfd2724077670cb0cb0bfe9e63470
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.
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.
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.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef _MIPS_BITS_SETJMP_H
21 #define _MIPS_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 <sgidefs.h>
29 typedef struct __jmp_buf_internal_tag
31 #if _MIPS_SIM == _ABIO32
32 /* Program counter. */
33 __ptr_t __pc;
35 /* Stack pointer. */
36 __ptr_t __sp;
38 /* Callee-saved registers s0 through s7. */
39 int __regs[8];
41 /* The frame pointer. */
42 __ptr_t __fp;
44 /* The global pointer. */
45 __ptr_t __gp;
46 #else
47 /* Program counter. */
48 __extension__ long long __pc;
50 /* Stack pointer. */
51 __extension__ long long __sp;
53 /* Callee-saved registers s0 through s7. */
54 __extension__ long long __regs[8];
56 /* The frame pointer. */
57 __extension__ long long __fp;
59 /* The global pointer. */
60 __extension__ long long __gp;
61 #endif
63 /* Floating point status register. */
64 int __fpc_csr;
66 /* Callee-saved floating point registers. */
67 #if _MIPS_SIM == _ABI64
68 double __fpregs[8];
69 #else
70 double __fpregs[6];
71 #endif
72 } __jmp_buf[1];
74 #endif /* _MIPS_BITS_SETJMP_H */