ptrace.h 604 B

12345678910111213141516171819202122232425262728
  1. #ifndef _M68K_PTRACE_H
  2. #define _M68K_PTRACE_H
  3. #include <uapi/asm/ptrace.h>
  4. #ifndef __ASSEMBLY__
  5. #ifndef PS_S
  6. #define PS_S (0x2000)
  7. #define PS_M (0x1000)
  8. #endif
  9. #define user_mode(regs) (!((regs)->sr & PS_S))
  10. #define instruction_pointer(regs) ((regs)->pc)
  11. #define profile_pc(regs) instruction_pointer(regs)
  12. #define current_pt_regs() \
  13. (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
  14. #define current_user_stack_pointer() rdusp()
  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 */