ptrace.h 683 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef _M68K_PTRACE_H
  3. #define _M68K_PTRACE_H
  4. /*
  5. * This struct defines the way the registers are stored on the
  6. * kernel stack during an exception.
  7. */
  8. #ifndef __ASSEMBLY__
  9. struct pt_regs {
  10. ulong d0;
  11. ulong d1;
  12. ulong d2;
  13. ulong d3;
  14. ulong d4;
  15. ulong d5;
  16. ulong d6;
  17. ulong d7;
  18. ulong a0;
  19. ulong a1;
  20. ulong a2;
  21. ulong a3;
  22. ulong a4;
  23. ulong a5;
  24. ulong a6;
  25. #if defined(__M68K__)
  26. unsigned format:4; /* frame format specifier */
  27. unsigned vector:12; /* vector offset */
  28. unsigned short sr;
  29. unsigned long pc;
  30. #else
  31. unsigned short sr;
  32. unsigned long pc;
  33. #endif
  34. };
  35. #endif /* #ifndef __ASSEMBLY__ */
  36. #endif /* #ifndef _M68K_PTRACE_H */