ptrace.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * See file CREDITS for list of people who contributed to this
  3. * project.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  18. * MA 02111-1307 USA
  19. */
  20. #ifndef _M68K_PTRACE_H
  21. #define _M68K_PTRACE_H
  22. /*
  23. * This struct defines the way the registers are stored on the
  24. * kernel stack during an exception.
  25. */
  26. #ifndef __ASSEMBLY__
  27. struct pt_regs {
  28. ulong d0;
  29. ulong d1;
  30. ulong d2;
  31. ulong d3;
  32. ulong d4;
  33. ulong d5;
  34. ulong d6;
  35. ulong d7;
  36. ulong a0;
  37. ulong a1;
  38. ulong a2;
  39. ulong a3;
  40. ulong a4;
  41. ulong a5;
  42. ulong a6;
  43. #if defined(CONFIG_M5272) || defined(CONFIG_M5282) || defined(CONFIG_M5249) || defined(CONFIG_M5271)
  44. unsigned format : 4; /* frame format specifier */
  45. unsigned vector : 12; /* vector offset */
  46. unsigned short sr;
  47. unsigned long pc;
  48. #else
  49. unsigned short sr;
  50. unsigned long pc;
  51. #endif
  52. };
  53. #endif /* #ifndef __ASSEMBLY__ */
  54. #endif /* #ifndef _M68K_PTRACE_H */