diff options
Diffstat (limited to 'include/asm-x86/ptrace.h')
-rw-r--r-- | include/asm-x86/ptrace.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index 48c1d5a890de..a33f027dbbea 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef _ASM_X86_PTRACE_H | 1 | #ifndef ASM_X86__PTRACE_H |
2 | #define _ASM_X86_PTRACE_H | 2 | #define ASM_X86__PTRACE_H |
3 | 3 | ||
4 | #include <linux/compiler.h> /* For __user */ | 4 | #include <linux/compiler.h> /* For __user */ |
5 | #include <asm/ptrace-abi.h> | 5 | #include <asm/ptrace-abi.h> |
@@ -216,6 +216,11 @@ static inline unsigned long frame_pointer(struct pt_regs *regs) | |||
216 | return regs->bp; | 216 | return regs->bp; |
217 | } | 217 | } |
218 | 218 | ||
219 | static inline unsigned long user_stack_pointer(struct pt_regs *regs) | ||
220 | { | ||
221 | return regs->sp; | ||
222 | } | ||
223 | |||
219 | /* | 224 | /* |
220 | * These are defined as per linux/ptrace.h, which see. | 225 | * These are defined as per linux/ptrace.h, which see. |
221 | */ | 226 | */ |
@@ -242,4 +247,4 @@ extern int do_set_thread_area(struct task_struct *p, int idx, | |||
242 | 247 | ||
243 | #endif /* !__ASSEMBLY__ */ | 248 | #endif /* !__ASSEMBLY__ */ |
244 | 249 | ||
245 | #endif | 250 | #endif /* ASM_X86__PTRACE_H */ |