1 #ifndef _ASMAXP_PTRACE_H
2 #define _ASMAXP_PTRACE_H
4 #include <uapi/asm/ptrace.h>
7 #define arch_has_single_step() (1)
8 #define user_mode(regs) (((regs)->ps & 8) != 0)
9 #define instruction_pointer(regs) ((regs)->pc)
10 #define profile_pc(regs) instruction_pointer(regs)
12 #define task_pt_regs(task) \
13 ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)
15 #define current_pt_regs() \
16 ((struct pt_regs *) ((char *)current_thread_info() + 2*PAGE_SIZE) - 1)
17 #define signal_pt_regs current_pt_regs
19 #define force_successful_syscall_return() (current_pt_regs()->r0 = 0)