]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/mips/bits/setjmp.h
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / mips / bits / setjmp.h
CommitLineData
4f389d4c 1/* Define the machine-dependent type `jmp_buf'. MIPS version.
04277e02 2 Copyright (C) 1992-2019 Free Software Foundation, Inc.
3214b89b 3 This file is part of the GNU C Library.
4f389d4c
UD
4
5 The GNU C Library is free software; you can redistribute it and/or
3214b89b
AJ
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.
4f389d4c
UD
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
3214b89b 13 Lesser General Public License for more details.
4f389d4c 14
3214b89b 15 You should have received a copy of the GNU Lesser General Public
ab84e3ff 16 License along with the GNU C Library. If not, see
5a82c748 17 <https://www.gnu.org/licenses/>. */
4f389d4c 18
e9eb4f57
AJ
19#ifndef _MIPS_BITS_SETJMP_H
20#define _MIPS_BITS_SETJMP_H 1
21
22#if !defined(_SETJMP_H) && !defined(_PTHREAD_H)
90571408
UD
23# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
24#endif
25
24c4c341
AJ
26#include <sgidefs.h>
27
e2570f30 28typedef struct __jmp_buf_internal_tag
4f389d4c 29 {
73a227e2 30#if _MIPS_SIM == _ABIO32
4f389d4c 31 /* Program counter. */
f17a4233 32 void *__pc;
4f389d4c
UD
33
34 /* Stack pointer. */
f17a4233 35 void *__sp;
4f389d4c
UD
36
37 /* Callee-saved registers s0 through s7. */
38 int __regs[8];
39
40 /* The frame pointer. */
f17a4233 41 void *__fp;
4f389d4c
UD
42
43 /* The global pointer. */
f17a4233 44 void *__gp;
19ca28fb
AO
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
4f389d4c 61
601eb33d
JM
62 /* Unused (was floating point status register). */
63 int __glibc_reserved1;
4f389d4c
UD
64
65 /* Callee-saved floating point registers. */
73a227e2 66#if _MIPS_SIM == _ABI64
ca2b264c 67 double __fpregs[8];
a5b668cc
AO
68#else
69 double __fpregs[6];
ca2b264c 70#endif
4f389d4c
UD
71 } __jmp_buf[1];
72
e9eb4f57 73#endif /* _MIPS_BITS_SETJMP_H */