Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / alpha / include / asm / ptrace.h
1 #ifndef _ASMAXP_PTRACE_H
2 #define _ASMAXP_PTRACE_H
3
4 #include <uapi/asm/ptrace.h>
5
6
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
12 #define task_pt_regs(task) \
13 ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)
14
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
18
19 #define force_successful_syscall_return() (current_pt_regs()->r0 = 0)
20
21 #endif