sigcontext.h 859 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef __ASM_SH_SIGCONTEXT_H
  3. #define __ASM_SH_SIGCONTEXT_H
  4. struct sigcontext {
  5. unsigned long oldmask;
  6. #if defined(__SH5__) || defined(CONFIG_CPU_SH5)
  7. /* CPU registers */
  8. unsigned long long sc_regs[63];
  9. unsigned long long sc_tregs[8];
  10. unsigned long long sc_pc;
  11. unsigned long long sc_sr;
  12. /* FPU registers */
  13. unsigned long long sc_fpregs[32];
  14. unsigned int sc_fpscr;
  15. unsigned int sc_fpvalid;
  16. #else
  17. /* CPU registers */
  18. unsigned long sc_regs[16];
  19. unsigned long sc_pc;
  20. unsigned long sc_pr;
  21. unsigned long sc_sr;
  22. unsigned long sc_gbr;
  23. unsigned long sc_mach;
  24. unsigned long sc_macl;
  25. /* FPU registers */
  26. unsigned long sc_fpregs[16];
  27. unsigned long sc_xfpregs[16];
  28. unsigned int sc_fpscr;
  29. unsigned int sc_fpul;
  30. unsigned int sc_ownedfp;
  31. #endif
  32. };
  33. #endif /* __ASM_SH_SIGCONTEXT_H */