sigcontext.h 906 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __ASM_SH_SIGCONTEXT_H
  2. #define __ASM_SH_SIGCONTEXT_H
  3. struct sigcontext {
  4. unsigned long oldmask;
  5. #if defined(__SH5__) || defined(CONFIG_CPU_SH5)
  6. /* CPU registers */
  7. unsigned long long sc_regs[63];
  8. unsigned long long sc_tregs[8];
  9. unsigned long long sc_pc;
  10. unsigned long long sc_sr;
  11. /* FPU registers */
  12. unsigned long long sc_fpregs[32];
  13. unsigned int sc_fpscr;
  14. unsigned int sc_fpvalid;
  15. #else
  16. /* CPU registers */
  17. unsigned long sc_regs[16];
  18. unsigned long sc_pc;
  19. unsigned long sc_pr;
  20. unsigned long sc_sr;
  21. unsigned long sc_gbr;
  22. unsigned long sc_mach;
  23. unsigned long sc_macl;
  24. #if defined(__SH4__) || defined(CONFIG_CPU_SH4) || \
  25. defined(__SH2A__) || defined(CONFIG_CPU_SH2A)
  26. /* FPU registers */
  27. unsigned long sc_fpregs[16];
  28. unsigned long sc_xfpregs[16];
  29. unsigned int sc_fpscr;
  30. unsigned int sc_fpul;
  31. unsigned int sc_ownedfp;
  32. #endif
  33. #endif
  34. };
  35. #endif /* __ASM_SH_SIGCONTEXT_H */