sigcontext.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef _ASM_M32R_SIGCONTEXT_H
  2. #define _ASM_M32R_SIGCONTEXT_H
  3. /* $Id$ */
  4. #include <linux/config.h>
  5. struct sigcontext {
  6. /* CPU registers */
  7. /* Saved main processor registers. */
  8. unsigned long sc_r4;
  9. unsigned long sc_r5;
  10. unsigned long sc_r6;
  11. struct pt_regs *sc_pt_regs;
  12. unsigned long sc_r0;
  13. unsigned long sc_r1;
  14. unsigned long sc_r2;
  15. unsigned long sc_r3;
  16. unsigned long sc_r7;
  17. unsigned long sc_r8;
  18. unsigned long sc_r9;
  19. unsigned long sc_r10;
  20. unsigned long sc_r11;
  21. unsigned long sc_r12;
  22. /* Saved main processor status and miscellaneous context registers. */
  23. #if defined(CONFIG_ISA_M32R2) && defined(CONFIG_ISA_DSP_LEVEL2)
  24. unsigned long sc_acc0h;
  25. unsigned long sc_acc0l;
  26. unsigned long sc_acc1h;
  27. unsigned long sc_acc1l;
  28. #elif defined(CONFIG_ISA_M32R2) || defined(CONFIG_ISA_M32R)
  29. unsigned long sc_acch;
  30. unsigned long sc_accl;
  31. unsigned long sc_dummy_acc1h;
  32. unsigned long sc_dummy_acc1l;
  33. #else
  34. #error unknown isa configuration
  35. #endif
  36. unsigned long sc_psw;
  37. unsigned long sc_bpc; /* saved PC for TRAP syscalls */
  38. unsigned long sc_bbpsw;
  39. unsigned long sc_bbpc;
  40. unsigned long sc_spu; /* saved user stack */
  41. unsigned long sc_fp;
  42. unsigned long sc_lr; /* saved PC for JL syscalls */
  43. unsigned long sc_spi; /* saved kernel stack */
  44. unsigned long oldmask;
  45. };
  46. #endif /* _ASM_M32R_SIGCONTEXT_H */