Go to the documentation of this file.
19 #ifndef __ASM_PTRACE_H
20 #define __ASM_PTRACE_H
22 #include <uapi/asm/ptrace.h>
25 #define COMPAT_PTRACE_GETREGS 12
26 #define COMPAT_PTRACE_SETREGS 13
27 #define COMPAT_PTRACE_GET_THREAD_AREA 22
28 #define COMPAT_PTRACE_SET_SYSCALL 23
29 #define COMPAT_PTRACE_GETVFPREGS 27
30 #define COMPAT_PTRACE_SETVFPREGS 28
31 #define COMPAT_PTRACE_GETHBPREGS 29
32 #define COMPAT_PTRACE_SETHBPREGS 30
33 #define COMPAT_PSR_MODE_USR 0x00000010
34 #define COMPAT_PSR_T_BIT 0x00000020
35 #define COMPAT_PSR_IT_MASK 0x0600fc00
40 #define COMPAT_PT_TEXT_ADDR 0x10000
41 #define COMPAT_PT_DATA_ADDR 0x10004
42 #define COMPAT_PT_TEXT_END_ADDR 0x10008
46 #define COMPAT_USER_SZ 296
48 #define compat_sp regs[13]
50 #define compat_lr regs[14]
71 #define arch_has_single_step() (1)
74 #define compat_thumb_mode(regs) \
75 (((regs)->pstate & COMPAT_PSR_T_BIT))
77 #define compat_thumb_mode(regs) (0)
80 #define user_mode(regs) \
81 (((regs)->pstate & PSR_MODE_MASK) == PSR_MODE_EL0t)
83 #define compat_user_mode(regs) \
84 (((regs)->pstate & (PSR_MODE32_BIT | PSR_MODE_MASK)) == \
85 (PSR_MODE32_BIT | PSR_MODE_EL0t))
87 #define processor_mode(regs) \
88 ((regs)->pstate & PSR_MODE_MASK)
90 #define interrupts_enabled(regs) \
91 (!((regs)->pstate & PSR_I_BIT))
93 #define fast_interrupts_enabled(regs) \
94 (!((regs)->pstate & PSR_F_BIT))
96 #define user_stack_pointer(regs) \
129 #define instruction_pointer(regs) (regs)->pc
134 #define profile_pc(regs) instruction_pointer(regs)