Go to the documentation of this file.
15 #ifndef _ASM_IA64_PTRACE_H
16 #define _ASM_IA64_PTRACE_H
19 #include <asm/asm-offsets.h>
21 #include <uapi/asm/ptrace.h>
27 #if defined(CONFIG_IA64_PAGE_SIZE_4KB)
28 # define KERNEL_STACK_SIZE_ORDER 3
29 #elif defined(CONFIG_IA64_PAGE_SIZE_8KB)
30 # define KERNEL_STACK_SIZE_ORDER 2
31 #elif defined(CONFIG_IA64_PAGE_SIZE_16KB)
32 # define KERNEL_STACK_SIZE_ORDER 1
34 # define KERNEL_STACK_SIZE_ORDER 0
37 #define IA64_RBS_OFFSET ((IA64_TASK_SIZE + IA64_THREAD_INFO_SIZE + 31) & ~31)
38 #define IA64_STK_OFFSET ((1 << KERNEL_STACK_SIZE_ORDER)*PAGE_SIZE)
40 #define KERNEL_STACK_SIZE IA64_STK_OFFSET
44 #include <asm/current.h>
52 # define instruction_pointer(regs) ((regs)->cr_iip + ia64_psr(regs)->ri)
62 return regs->
r10 != -1;
65 static inline long regs_return_value(
struct pt_regs *
regs)
76 #define profile_pc(regs) \
78 unsigned long __ip = instruction_pointer(regs); \
79 (__ip & ~3UL) + ((__ip & 3UL) << 2); \
83 # define task_pt_regs(t) (((struct pt_regs *) ((char *) (t) + IA64_STK_OFFSET)) - 1)
84 # define ia64_psr(regs) ((struct ia64_psr *) &(regs)->cr_ipsr)
85 # define user_mode(regs) (((struct ia64_psr *) &(regs)->cr_ipsr)->cpl != 0)
86 # define user_stack(task,regs) ((long) regs - (long) task == IA64_STK_OFFSET - sizeof(*regs))
87 # define fsys_mode(task,regs) \
89 struct task_struct *_task = (task); \
90 struct pt_regs *_regs = (regs); \
91 !user_mode(_regs) && user_stack(_task, _regs); \
106 # define force_successful_syscall_return() (task_pt_regs(current)->r8 = 0)
115 unsigned long,
long *);
117 unsigned long,
long);
122 unsigned long,
unsigned long);
133 #define arch_ptrace_stop(code, info) \
135 #define arch_ptrace_stop_needed(code, info) \
136 (!test_thread_flag(TIF_RESTORE_RSE))
139 #define arch_ptrace_attach(child) \
140 ptrace_attach_sync_user_rbs(child)
142 #define arch_has_single_step() (1)
143 #define arch_has_block_step() (1)