1 /* Define the machine-dependent type `jmp_buf'. MIPS version. 2 Copyright (C) 1992-2022 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 <https://www.gnu.org/licenses/>. */ 18 19 #ifndef _MIPS_BITS_SETJMP_H 20 #define _MIPS_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 typedef struct __jmp_buf_internal_tag 29 { 30 #if _MIPS_SIM == _ABIO32 31 /* Program counter. */ 32 void *__pc; 33 34 /* Stack pointer. */ 35 void *__sp; 36 37 /* Callee-saved registers s0 through s7. */ 38 int __regs[8]; 39 40 /* The frame pointer. */ 41 void *__fp; 42 43 /* The global pointer. */ 44 void *__gp; 45 #else 46 /* Program counter. */ 47 __extension__ long long __pc; 48 49 /* Stack pointer. */ 50 __extension__ long long __sp; 51 52 /* Callee-saved registers s0 through s7. */ 53 __extension__ long long __regs[8]; 54 55 /* The frame pointer. */ 56 __extension__ long long __fp; 57 58 /* The global pointer. */ 59 __extension__ long long __gp; 60 #endif 61 62 /* Unused (was floating point status register). */ 63 int __glibc_reserved1; 64 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]; 72 73 #endif /* _MIPS_BITS_SETJMP_H */ 74