setjmp.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef _SETJMP_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, r16 - r19 and r28 - r31. */
  28. int __regs[31];
  29. /* Program counter. */
  30. void * __pc;
  31. } __jmp_buf[1];
  32. #endif
  33. #endif /* bits/setjmp.h */