Linux 4.13.16
[linux/fpc-iii.git] / arch / alpha / include / asm / ptrace.h
blob9047c2fe8f23f4bf7378e04cf8dc2ef6fb79524d
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)
11 #define current_user_stack_pointer() rdusp()
13 #define task_pt_regs(task) \
14 ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)
16 #define current_pt_regs() \
17 ((struct pt_regs *) ((char *)current_thread_info() + 2*PAGE_SIZE) - 1)
18 #define signal_pt_regs current_pt_regs
20 #define force_successful_syscall_return() (current_pt_regs()->r0 = 0)
22 static inline unsigned long regs_return_value(struct pt_regs *regs)
24 return regs->r0;
27 #endif