]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/m68k/include/asm/ptrace.h
Merge remote-tracking branches 'spi/topic/omap-uwire', 'spi/topic/omap100k', 'spi...
[mirror_ubuntu-bionic-kernel.git] / arch / m68k / include / asm / ptrace.h
CommitLineData
230d1866
GU
1#ifndef _M68K_PTRACE_H
2#define _M68K_PTRACE_H
3
10b3a979 4#include <uapi/asm/ptrace.h>
230d1866
GU
5
6#ifndef __ASSEMBLY__
230d1866
GU
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)
d878d6da
AV
16#define current_pt_regs() \
17 (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
1ca97bb5 18#define current_user_stack_pointer() rdusp()
faa47b46 19
faa47b46 20#define arch_has_single_step() (1)
faa47b46 21
f60a5572 22#ifdef CONFIG_MMU
faa47b46 23#define arch_has_block_step() (1)
faa47b46
AS
24#endif
25
230d1866
GU
26#endif /* __ASSEMBLY__ */
27#endif /* _M68K_PTRACE_H */