new helper: current_user_stack_pointer()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 18 Nov 2012 17:50:10 +0000 (12:50 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Dec 2012 23:07:39 +0000 (18:07 -0500)
commit1ca97bb541a1f5a735e697a8bba763cde3aab452
tree548d835c0f13de780678922ba3b3ea4c841e8cd7
parent5208ba24e7826519d310474dedaed2f84b0ab6a0
new helper: current_user_stack_pointer()

Cross-architecture equivalent of rdusp(); default is
user_stack_pointer(current_pt_regs()) - that works for almost all
platforms that have usp saved in pt_regs.  The only exception from
that is ia64 - we want memory stack, not the backing store for
register one.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/include/asm/ptrace.h
arch/blackfin/include/asm/ptrace.h
arch/cris/include/asm/ptrace.h
arch/h8300/include/asm/ptrace.h
arch/ia64/include/asm/ptrace.h
arch/m68k/include/asm/ptrace.h
include/linux/ptrace.h