diff options
Diffstat (limited to 'include/asm-x86/ptrace.h')
-rw-r--r-- | include/asm-x86/ptrace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index 8a71db803da6..91a77f5c4678 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -213,6 +213,11 @@ static inline unsigned long frame_pointer(struct pt_regs *regs) | |||
213 | return regs->bp; | 213 | return regs->bp; |
214 | } | 214 | } |
215 | 215 | ||
216 | static inline unsigned long user_stack_pointer(struct pt_regs *regs) | ||
217 | { | ||
218 | return regs->sp; | ||
219 | } | ||
220 | |||
216 | /* | 221 | /* |
217 | * These are defined as per linux/ptrace.h, which see. | 222 | * These are defined as per linux/ptrace.h, which see. |
218 | */ | 223 | */ |