2006-01-10 Roland McGrath <roland@redhat.com>
[glibc-ports.git] / sysdeps / mips / bits / setjmp.h
blob4f159c49885de892aaa390874632eef999154d31
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, write to the Free
18 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA. */
21 #ifndef _MIPS_BITS_SETJMP_H
22 #define _MIPS_BITS_SETJMP_H 1
24 #if !defined(_SETJMP_H) && !defined(_PTHREAD_H)
25 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
26 #endif
28 #include <sgidefs.h>
30 typedef struct
32 #if _MIPS_SIM == _ABIO32
33 /* Program counter. */
34 __ptr_t __pc;
36 /* Stack pointer. */
37 __ptr_t __sp;
39 /* Callee-saved registers s0 through s7. */
40 int __regs[8];
42 /* The frame pointer. */
43 __ptr_t __fp;
45 /* The global pointer. */
46 __ptr_t __gp;
47 #else
48 /* Program counter. */
49 __extension__ long long __pc;
51 /* Stack pointer. */
52 __extension__ long long __sp;
54 /* Callee-saved registers s0 through s7. */
55 __extension__ long long __regs[8];
57 /* The frame pointer. */
58 __extension__ long long __fp;
60 /* The global pointer. */
61 __extension__ long long __gp;
62 #endif
64 /* Floating point status register. */
65 int __fpc_csr;
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];
75 #endif /* _MIPS_BITS_SETJMP_H */