Messages in this thread Patch in this message | | | From | Simon Marchi <> | Subject | [PATCH 2/3] arch/tile: Implement user_stack_pointer | Date | Sat, 22 Dec 2012 00:21:11 -0500 |
| |
It is needed when we turn on HAVE_ARCH_TRACEHOOK.
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca> --- arch/tile/include/asm/ptrace.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/tile/include/asm/ptrace.h b/arch/tile/include/asm/ptrace.h index 5ce052e..4be42fb 100644 --- a/arch/tile/include/asm/ptrace.h +++ b/arch/tile/include/asm/ptrace.h @@ -80,6 +80,11 @@ struct task_struct; extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code); +static inline unsigned long user_stack_pointer(struct pt_regs *regs) +{ + return regs->sp; +} + #ifdef __tilegx__ /* We need this since sigval_t has a user pointer in it, for GETSIGINFO etc. */ #define __ARCH_WANT_COMPAT_SYS_PTRACE -- 1.7.1
| |