]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/m68k/include/asm/ptrace.h
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / arch / m68k / include / asm / ptrace.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
230d1866
GU
2#ifndef _M68K_PTRACE_H
3#define _M68K_PTRACE_H
4
10b3a979 5#include <uapi/asm/ptrace.h>
230d1866
GU
6
7#ifndef __ASSEMBLY__
230d1866
GU
8
9#ifndef PS_S
10#define PS_S (0x2000)
11#define PS_M (0x1000)
12#endif
13
14#define user_mode(regs) (!((regs)->sr & PS_S))
15#define instruction_pointer(regs) ((regs)->pc)
16#define profile_pc(regs) instruction_pointer(regs)
d878d6da
AV
17#define current_pt_regs() \
18 (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
1ca97bb5 19#define current_user_stack_pointer() rdusp()
faa47b46 20
faa47b46 21#define arch_has_single_step() (1)
faa47b46 22
f60a5572 23#ifdef CONFIG_MMU
faa47b46 24#define arch_has_block_step() (1)
faa47b46
AS
25#endif
26
230d1866
GU
27#endif /* __ASSEMBLY__ */
28#endif /* _M68K_PTRACE_H */