Go to the documentation of this file. 1 #ifndef _ASMAXP_PTRACE_H
2 #define _ASMAXP_PTRACE_H
71 #define arch_has_single_step() (1)
72 #define user_mode(regs) (((regs)->ps & 8) != 0)
73 #define instruction_pointer(regs) ((regs)->pc)
74 #define profile_pc(regs) instruction_pointer(regs)
76 #define task_pt_regs(task) \
77 ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)
79 #define current_pt_regs() \
80 ((struct pt_regs *) ((char *)current_thread_info() + 2*PAGE_SIZE) - 1)
82 #define force_successful_syscall_return() (current_pt_regs()->r0 = 0)