aboutsummaryrefslogtreecommitdiff
path: root/arch/ia64/include/asm/ptrace.h
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2008-10-17 13:51:16 -0700
committerTony Luck <tony.luck@intel.com>2008-10-17 13:51:16 -0700
commit9224652cc76417bfe779bcdb1243cf0b083e3eee (patch)
treed80d0f2d00d9eda6500deedc9488071f005f732b /arch/ia64/include/asm/ptrace.h
parent4d4230c27f380745b7fc30c0906402eede3b2cff (diff)
parent680973edf122fd95735ecfc077cf79645d2e5081 (diff)
Pull utrace into release branch
Diffstat (limited to 'arch/ia64/include/asm/ptrace.h')
-rw-r--r--arch/ia64/include/asm/ptrace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/ia64/include/asm/ptrace.h b/arch/ia64/include/asm/ptrace.h
index 15f8dcfe6ee..6417c1ecb44 100644
--- a/arch/ia64/include/asm/ptrace.h
+++ b/arch/ia64/include/asm/ptrace.h
@@ -240,6 +240,12 @@ struct switch_stack {
*/
# define instruction_pointer(regs) ((regs)->cr_iip + ia64_psr(regs)->ri)
+static inline unsigned long user_stack_pointer(struct pt_regs *regs)
+{
+ /* FIXME: should this be bspstore + nr_dirty regs? */
+ return regs->ar_bspstore;
+}
+
#define regs_return_value(regs) ((regs)->r8)
/* Conserve space in histogram by encoding slot bits in address
@@ -319,6 +325,8 @@ struct switch_stack {
#define arch_has_block_step() (1)
extern void user_enable_block_step(struct task_struct *);
+#define __ARCH_WANT_COMPAT_SYS_PTRACE
+
#endif /* !__KERNEL__ */
/* pt_all_user_regs is used for PTRACE_GETREGS PTRACE_SETREGS */