ptrace.h 687 B

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