setjmp.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2016 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. /* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  6. The GNU C Library is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU Library General Public License as
  8. published by the Free Software Foundation; either version 2 of the
  9. License, or (at your option) any later version.
  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. Library General Public License for more details.
  14. You should have received a copy of the GNU Library General Public
  15. License along with the GNU C Library; see the file COPYING.LIB. If not,
  16. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. Boston, MA 02111-1307, USA. */
  18. /* Define the machine-dependent type `jmp_buf'. NDS32 version. */
  19. #ifndef _BITS_SETJMP_H
  20. #define _BITS_SETJMP_H 1
  21. #if !defined _SETJMP_H && !defined _PTHREAD_H
  22. # error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
  23. #endif
  24. #ifndef _ASM
  25. typedef struct
  26. {
  27. /* Callee-saved registers: r6 - r14,
  28. * * fp, gp, lp, sp: r28 - r31. */
  29. int __regs[13];
  30. /* Floating-Point Configuration Register. */
  31. int __fpcfg;
  32. /* Callee-saved fp registers pointer. */
  33. int __fpregs[32];
  34. } __jmp_buf[1] __attribute__((__aligned__ (8)));
  35. #endif
  36. #endif /* bits/setjmp.h */