sigcontext.h 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * include/asm-xtensa/sigcontext.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2001 - 2003 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_SIGCONTEXT_H
  11. #define _XTENSA_SIGCONTEXT_H
  12. #define _ASMLANGUAGE
  13. #include <asm/processor.h>
  14. #include <asm/coprocessor.h>
  15. struct _cpstate {
  16. unsigned char _cpstate[XTENSA_CP_EXTRA_SIZE];
  17. } __attribute__ ((aligned (XTENSA_CP_EXTRA_ALIGN)));
  18. struct sigcontext {
  19. unsigned long oldmask;
  20. /* CPU registers */
  21. unsigned long sc_pc;
  22. unsigned long sc_ps;
  23. unsigned long sc_wmask;
  24. unsigned long sc_windowbase;
  25. unsigned long sc_windowstart;
  26. unsigned long sc_lbeg;
  27. unsigned long sc_lend;
  28. unsigned long sc_lcount;
  29. unsigned long sc_sar;
  30. unsigned long sc_depc;
  31. unsigned long sc_dareg0;
  32. unsigned long sc_treg[4];
  33. unsigned long sc_areg[XCHAL_NUM_AREGS];
  34. struct _cpstate *sc_cpstate;
  35. };
  36. #endif /* __ASM_XTENSA_SIGCONTEXT_H */