ptrace.h 498 B

123456789101112131415161718192021222324252627
  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 arch_has_single_step() (1)
  16. #ifdef CONFIG_MMU
  17. #define arch_has_block_step() (1)
  18. #endif
  19. #endif /* __ASSEMBLY__ */
  20. #endif /* _M68K_PTRACE_H */