]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/asm-x86/ptrace.h
Merge branches 'x86/tracehook', 'x86/xsave' and 'x86/prototypes' into x86/signal
[net-next-2.6.git] / include / asm-x86 / ptrace.h
index 48c1d5a890de0492747dce053a38b519a5da19e7..a33f027dbbea7b58148586b0d9e5dd4392c0ede5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _ASM_X86_PTRACE_H
-#define _ASM_X86_PTRACE_H
+#ifndef ASM_X86__PTRACE_H
+#define ASM_X86__PTRACE_H
 
 #include <linux/compiler.h>    /* For __user */
 #include <asm/ptrace-abi.h>
@@ -216,6 +216,11 @@ static inline unsigned long frame_pointer(struct pt_regs *regs)
        return regs->bp;
 }
 
+static inline unsigned long user_stack_pointer(struct pt_regs *regs)
+{
+       return regs->sp;
+}
+
 /*
  * These are defined as per linux/ptrace.h, which see.
  */
@@ -242,4 +247,4 @@ extern int do_set_thread_area(struct task_struct *p, int idx,
 
 #endif /* !__ASSEMBLY__ */
 
-#endif
+#endif /* ASM_X86__PTRACE_H */