ptrace.h 875 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _UAPI_H8300_PTRACE_H
  2. #define _UAPI_H8300_PTRACE_H
  3. #ifndef __ASSEMBLY__
  4. #define PT_ER1 0
  5. #define PT_ER2 1
  6. #define PT_ER3 2
  7. #define PT_ER4 3
  8. #define PT_ER5 4
  9. #define PT_ER6 5
  10. #define PT_ER0 6
  11. #define PT_ORIG_ER0 7
  12. #define PT_CCR 8
  13. #define PT_PC 9
  14. #define PT_USP 10
  15. #define PT_EXR 12
  16. /* this struct defines the way the registers are stored on the
  17. stack during a system call. */
  18. struct pt_regs {
  19. long retpc;
  20. long er4;
  21. long er5;
  22. long er6;
  23. long er3;
  24. long er2;
  25. long er1;
  26. long orig_er0;
  27. unsigned short ccr;
  28. long er0;
  29. long vector;
  30. #if defined(CONFIG_CPU_H8S)
  31. unsigned short exr;
  32. #endif
  33. unsigned long pc;
  34. } __attribute__((aligned(2),packed));
  35. #define PTRACE_GETREGS 12
  36. #define PTRACE_SETREGS 13
  37. #endif /* __ASSEMBLY__ */
  38. #endif /* _UAPI_H8300_PTRACE_H */