blob: a836f6cc60db49bbf9da5f4b1df7efd565e7da3e [file] [log] [blame]
wdenkbb2d9272003-06-25 22:26:29 +00001#ifndef __ASM_ARM_PTRACE_H
2#define __ASM_ARM_PTRACE_H
3
4#define PTRACE_GETREGS 12
5#define PTRACE_SETREGS 13
6#define PTRACE_GETFPREGS 14
7#define PTRACE_SETFPREGS 15
8
9#define PTRACE_SETOPTIONS 21
10
11/* options set using PTRACE_SETOPTIONS */
12#define PTRACE_O_TRACESYSGOOD 0x00000001
13
Vasili Galka8e53b1e2014-06-10 16:16:14 +030014#include <asm/proc-armv/ptrace.h>
wdenkbb2d9272003-06-25 22:26:29 +000015
16#ifndef __ASSEMBLY__
17#define pc_pointer(v) \
18 ((v) & ~PCMASK)
19
20#define instruction_pointer(regs) \
21 (pc_pointer((regs)->ARM_pc))
22
23#ifdef __KERNEL__
24extern void show_regs(struct pt_regs *);
25
26#define predicate(x) (x & 0xf0000000)
27#define PREDICATE_ALWAYS 0xe0000000
28
29#endif
30
31#endif /* __ASSEMBLY__ */
32
33#endif