2009-03-16 19:07:39 +07:00
|
|
|
#ifndef _M68K_PTRACE_H
|
|
|
|
#define _M68K_PTRACE_H
|
|
|
|
|
2012-10-09 15:47:06 +07:00
|
|
|
#include <uapi/asm/ptrace.h>
|
2009-03-16 19:07:39 +07:00
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#ifndef PS_S
|
|
|
|
#define PS_S (0x2000)
|
|
|
|
#define PS_M (0x1000)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define user_mode(regs) (!((regs)->sr & PS_S))
|
|
|
|
#define instruction_pointer(regs) ((regs)->pc)
|
|
|
|
#define profile_pc(regs) instruction_pointer(regs)
|
2012-09-16 23:06:34 +07:00
|
|
|
#define current_pt_regs() \
|
|
|
|
(struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
|
2009-05-11 02:14:52 +07:00
|
|
|
|
|
|
|
#define arch_has_single_step() (1)
|
|
|
|
|
2009-07-07 12:54:54 +07:00
|
|
|
#ifdef CONFIG_MMU
|
2009-05-11 02:14:52 +07:00
|
|
|
#define arch_has_block_step() (1)
|
|
|
|
#endif
|
|
|
|
|
2009-03-16 19:07:39 +07:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* _M68K_PTRACE_H */
|