ptrace.h 595 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _M68K_PTRACE_H
  2. #define _M68K_PTRACE_H
  3. #include <uapi/asm/ptrace.h>
  4. #ifndef __ASSEMBLY__
  5. #ifdef CONFIG_COLDFIRE
  6. #else
  7. #endif
  8. #ifndef PS_S
  9. #define PS_S (0x2000)
  10. #define PS_M (0x1000)
  11. #endif
  12. #define user_mode(regs) (!((regs)->sr & PS_S))
  13. #define instruction_pointer(regs) ((regs)->pc)
  14. #define profile_pc(regs) instruction_pointer(regs)
  15. #define current_pt_regs() \
  16. (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
  17. #define arch_has_single_step() (1)
  18. #ifdef CONFIG_MMU
  19. #define arch_has_block_step() (1)
  20. #endif
  21. #endif /* __ASSEMBLY__ */
  22. #endif /* _M68K_PTRACE_H */