[IA64] utrace syscall.h support for ia64
[sfrench/cifs-2.6.git] / arch / ia64 / include / asm / ptrace.h
index 15f8dcfe6eeef8d675d07cb13d7aa71ceea0fc00..14055c636adf24a4f16c80e2fc123f678bbb9edd 100644 (file)
@@ -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