summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/ptrace.h
diff options
context:
space:
mode:
authorAl Viro2012-12-14 07:50:19 +0100
committerAl Viro2012-12-20 00:07:39 +0100
commit5208ba24e7826519d310474dedaed2f84b0ab6a0 (patch)
tree096a174031c17e47128918da5d8b609c886ca5e0 /arch/xtensa/include/asm/ptrace.h
parentBury the conditionals from kernel_thread/kernel_execve series (diff)
downloadkernel-qcow2-linux-5208ba24e7826519d310474dedaed2f84b0ab6a0.tar.gz
kernel-qcow2-linux-5208ba24e7826519d310474dedaed2f84b0ab6a0.tar.xz
kernel-qcow2-linux-5208ba24e7826519d310474dedaed2f84b0ab6a0.zip
missing user_stack_pointer() instances
for the architectures that have usp in pt_regs and do not have user_stack_pointer() already defined. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/xtensa/include/asm/ptrace.h')
-rw-r--r--arch/xtensa/include/asm/ptrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/ptrace.h b/arch/xtensa/include/asm/ptrace.h
index da21c17f23aa..43d0d5d7c8a0 100644
--- a/arch/xtensa/include/asm/ptrace.h
+++ b/arch/xtensa/include/asm/ptrace.h
@@ -63,6 +63,8 @@ struct pt_regs {
# define profile_pc(regs) instruction_pointer(regs)
# endif
+#define user_stack_pointer(regs) ((regs)->areg[1])
+
#else /* __ASSEMBLY__ */
# include <asm/asm-offsets.h>