sigcontext.h 796 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. /* FPU registers */
  25. unsigned long sc_fpregs[16];
  26. unsigned long sc_xfpregs[16];
  27. unsigned int sc_fpscr;
  28. unsigned int sc_fpul;
  29. unsigned int sc_ownedfp;
  30. #endif
  31. };
  32. #endif /* __ASM_SH_SIGCONTEXT_H */