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>
Showing
- arch/alpha/include/asm/ptrace.h 1 addition, 0 deletionsarch/alpha/include/asm/ptrace.h
- arch/blackfin/include/asm/ptrace.h 1 addition, 0 deletionsarch/blackfin/include/asm/ptrace.h
- arch/cris/include/asm/ptrace.h 1 addition, 0 deletionsarch/cris/include/asm/ptrace.h
- arch/h8300/include/asm/ptrace.h 1 addition, 0 deletionsarch/h8300/include/asm/ptrace.h
- arch/ia64/include/asm/ptrace.h 5 additions, 0 deletionsarch/ia64/include/asm/ptrace.h
- arch/m68k/include/asm/ptrace.h 1 addition, 0 deletionsarch/m68k/include/asm/ptrace.h
- include/linux/ptrace.h 4 additions, 0 deletionsinclude/linux/ptrace.h
Loading
Please register or sign in to comment