setjmp.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Define the machine-dependent type `jmp_buf'. MIPS version.
  2. Copyright (C) 1992,93,95,97,2000 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef _BITS_SETJMP_H
  16. #define _BITS_SETJMP_H 1
  17. #if !defined _SETJMP_H && !defined _PTHREAD_H
  18. # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
  19. #endif
  20. #include <sgidefs.h>
  21. typedef struct
  22. {
  23. /* Program counter. */
  24. void * __pc;
  25. /* Stack pointer. */
  26. void * __sp;
  27. /* Callee-saved registers s0 through s7. */
  28. #if _MIPS_SIM == _MIPS_SIM_ABI32
  29. int __regs[8];
  30. #else
  31. long long __regs[8];
  32. #endif
  33. /* The frame pointer. */
  34. void * __fp;
  35. /* The global pointer. */
  36. void * __gp;
  37. /* Floating point status register. */
  38. int __fpc_csr;
  39. /* Callee-saved floating point registers. */
  40. #if _MIPS_SIM == _MIPS_SIM_ABI64
  41. double __fpregs[8];
  42. #else /* N32 || O32 */
  43. double __fpregs[6];
  44. #endif /* N32 || O32 */
  45. } __jmp_buf[1];
  46. #endif /* bits/setjmp.h */