xref: /openbmc/linux/arch/m68k/include/asm/ptrace.h (revision 05bcf503)
1 #ifndef _M68K_PTRACE_H
2 #define _M68K_PTRACE_H
3 
4 #include <uapi/asm/ptrace.h>
5 
6 #ifndef __ASSEMBLY__
7 
8 #ifndef PS_S
9 #define PS_S  (0x2000)
10 #define PS_M  (0x1000)
11 #endif
12 
13 #define user_mode(regs) (!((regs)->sr & PS_S))
14 #define instruction_pointer(regs) ((regs)->pc)
15 #define profile_pc(regs) instruction_pointer(regs)
16 #define current_pt_regs() \
17 	(struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
18 
19 #define arch_has_single_step()	(1)
20 
21 #ifdef CONFIG_MMU
22 #define arch_has_block_step()	(1)
23 #endif
24 
25 #endif /* __ASSEMBLY__ */
26 #endif /* _M68K_PTRACE_H */
27