2009-03-16 12:07:39 +00:00
|
|
|
#ifndef _M68K_PTRACE_H
|
|
|
|
#define _M68K_PTRACE_H
|
|
|
|
|
2012-10-09 08:47:06 +00:00
|
|
|
#include <uapi/asm/ptrace.h>
|
2009-03-16 12:07:39 +00: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 16:06:34 +00:00
|
|
|
#define current_pt_regs() \
|
|
|
|
(struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
|
2012-11-18 17:50:10 +00:00
|
|
|
#define current_user_stack_pointer() rdusp()
|
2009-05-10 19:14:52 +00:00
|
|
|
|
|
|
|
#define arch_has_single_step() (1)
|
|
|
|
|
2009-07-07 05:54:54 +00:00
|
|
|
#ifdef CONFIG_MMU
|
2009-05-10 19:14:52 +00:00
|
|
|
#define arch_has_block_step() (1)
|
|
|
|
#endif
|
|
|
|
|
2009-03-16 12:07:39 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* _M68K_PTRACE_H */
|