Back to index

glibc  2.9
setjmp.h
Go to the documentation of this file.
00001 /* Define the machine-dependent type `jmp_buf'.  MIPS version.
00002    Copyright (C) 1992,1993,1995,1997,2000,2002,2003,2004,2005,2006
00003        Free Software Foundation, Inc.
00004    This file is part of the GNU C Library.
00005 
00006    The GNU C Library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License as published by the Free Software Foundation; either
00009    version 2.1 of the License, or (at your option) any later version.
00010 
00011    The GNU C Library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public
00017    License along with the GNU C Library; if not, write to the Free
00018    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019    02111-1307 USA.  */
00020 
00021 #ifndef _MIPS_BITS_SETJMP_H
00022 #define _MIPS_BITS_SETJMP_H 1
00023 
00024 #if !defined(_SETJMP_H) && !defined(_PTHREAD_H)
00025 # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
00026 #endif
00027 
00028 #include <sgidefs.h>
00029 
00030 typedef struct __jmp_buf_internal_tag
00031   {
00032 #if _MIPS_SIM == _ABIO32
00033     /* Program counter.  */
00034     __ptr_t __pc;
00035 
00036     /* Stack pointer.  */
00037     __ptr_t __sp;
00038 
00039     /* Callee-saved registers s0 through s7.  */
00040     int __regs[8];
00041 
00042     /* The frame pointer.  */
00043     __ptr_t __fp;
00044 
00045     /* The global pointer.  */
00046     __ptr_t __gp;
00047 #else
00048     /* Program counter.  */
00049     __extension__ long long __pc;
00050 
00051     /* Stack pointer.  */
00052     __extension__ long long __sp;
00053 
00054     /* Callee-saved registers s0 through s7.  */
00055     __extension__ long long __regs[8];
00056 
00057     /* The frame pointer.  */
00058     __extension__ long long __fp;
00059 
00060     /* The global pointer.  */
00061     __extension__ long long __gp;
00062 #endif
00063 
00064     /* Floating point status register.  */
00065     int __fpc_csr;
00066 
00067     /* Callee-saved floating point registers.  */
00068 #if _MIPS_SIM == _ABI64
00069     double __fpregs[8];
00070 #else
00071     double __fpregs[6];
00072 #endif
00073   } __jmp_buf[1];
00074 
00075 #endif /* _MIPS_BITS_SETJMP_H */