setjmp.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) 2026 Waldemar Brodkorb <wbx@uclibc-ng.org>
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. /* Define the machine-dependent type `jmp_buf'.
  6. Copyright (C) 2022-2026 Free Software Foundation, Inc.
  7. The GNU C Library is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. 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.
  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. #ifndef _LOONGARCH_BITS_SETJMP_H
  19. #define _LOONGARCH_BITS_SETJMP_H
  20. typedef struct __jmp_buf_internal_tag
  21. {
  22. /* Program counter. */
  23. long int __pc;
  24. /* Stack pointer. */
  25. long int __sp;
  26. /* Reserved */
  27. long int __x;
  28. /* Frame pointer. */
  29. long int __fp;
  30. /* Callee-saved registers. */
  31. long int __regs[9];
  32. #ifndef __loongarch_soft_float
  33. /* Callee-saved floating point registers. */
  34. double __fpregs[8];
  35. #endif
  36. } __jmp_buf[1];
  37. #endif /* _LOONGARCH_BITS_SETJMP_H */