asm-offsets.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __ASM_OFFSETS_H__
  2. #define __ASM_OFFSETS_H__
  3. /*
  4. * DO NOT MODIFY.
  5. *
  6. * This file was generated by arch/m68knommu/Makefile
  7. *
  8. */
  9. #define TASK_STATE 0 /* offsetof(struct task_struct, state) */
  10. #define TASK_FLAGS 12 /* offsetof(struct task_struct, flags) */
  11. #define TASK_PTRACE 16 /* offsetof(struct task_struct, ptrace) */
  12. #define TASK_BLOCKED 922 /* offsetof(struct task_struct, blocked) */
  13. #define TASK_THREAD 772 /* offsetof(struct task_struct, thread) */
  14. #define TASK_THREAD_INFO 4 /* offsetof(struct task_struct, thread_info) */
  15. #define TASK_MM 92 /* offsetof(struct task_struct, mm) */
  16. #define TASK_ACTIVE_MM 96 /* offsetof(struct task_struct, active_mm) */
  17. #define CPUSTAT_SOFTIRQ_PENDING 0 /* offsetof(irq_cpustat_t, __softirq_pending) */
  18. #define THREAD_KSP 0 /* offsetof(struct thread_struct, ksp) */
  19. #define THREAD_USP 4 /* offsetof(struct thread_struct, usp) */
  20. #define THREAD_SR 8 /* offsetof(struct thread_struct, sr) */
  21. #define THREAD_FS 10 /* offsetof(struct thread_struct, fs) */
  22. #define THREAD_CRP 12 /* offsetof(struct thread_struct, crp) */
  23. #define THREAD_ESP0 20 /* offsetof(struct thread_struct, esp0) */
  24. #define THREAD_FPREG 24 /* offsetof(struct thread_struct, fp) */
  25. #define THREAD_FPCNTL 120 /* offsetof(struct thread_struct, fpcntl) */
  26. #define THREAD_FPSTATE 132 /* offsetof(struct thread_struct, fpstate) */
  27. #define PT_D0 32 /* offsetof(struct pt_regs, d0) */
  28. #define PT_ORIG_D0 36 /* offsetof(struct pt_regs, orig_d0) */
  29. #define PT_D1 0 /* offsetof(struct pt_regs, d1) */
  30. #define PT_D2 4 /* offsetof(struct pt_regs, d2) */
  31. #define PT_D3 8 /* offsetof(struct pt_regs, d3) */
  32. #define PT_D4 12 /* offsetof(struct pt_regs, d4) */
  33. #define PT_D5 16 /* offsetof(struct pt_regs, d5) */
  34. #define PT_A0 20 /* offsetof(struct pt_regs, a0) */
  35. #define PT_A1 24 /* offsetof(struct pt_regs, a1) */
  36. #define PT_A2 28 /* offsetof(struct pt_regs, a2) */
  37. #define PT_PC 48 /* offsetof(struct pt_regs, pc) */
  38. #define PT_SR 46 /* offsetof(struct pt_regs, sr) */
  39. #define PT_VECTOR 52 /* offsetof(struct pt_regs, pc) + 4 */
  40. #define STAT_IRQ 5140 /* offsetof(struct kernel_stat, irqs) */
  41. #define SIGSEGV 11 /* SIGSEGV */
  42. #define SEGV_MAPERR 196609 /* SEGV_MAPERR */
  43. #define SIGTRAP 5 /* SIGTRAP */
  44. #define TRAP_TRACE 196610 /* TRAP_TRACE */
  45. #define PT_PTRACED 1 /* PT_PTRACED */
  46. #define PT_DTRACE 2 /* PT_DTRACE */
  47. #endif