diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-18 12:50:10 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-19 18:07:39 -0500 |
commit | 1ca97bb541a1f5a735e697a8bba763cde3aab452 (patch) | |
tree | 548d835c0f13de780678922ba3b3ea4c841e8cd7 /arch/h8300/include/asm | |
parent | 5208ba24e7826519d310474dedaed2f84b0ab6a0 (diff) |
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>
Diffstat (limited to 'arch/h8300/include/asm')
-rw-r--r-- | arch/h8300/include/asm/ptrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/h8300/include/asm/ptrace.h b/arch/h8300/include/asm/ptrace.h index 7468589a128b..6183371d0c93 100644 --- a/arch/h8300/include/asm/ptrace.h +++ b/arch/h8300/include/asm/ptrace.h | |||
@@ -63,6 +63,7 @@ struct pt_regs { | |||
63 | #define current_pt_regs() ((struct pt_regs *) \ | 63 | #define current_pt_regs() ((struct pt_regs *) \ |
64 | (THREAD_SIZE + (unsigned long)current_thread_info()) - 1) | 64 | (THREAD_SIZE + (unsigned long)current_thread_info()) - 1) |
65 | #define signal_pt_regs() ((struct pt_regs *)current->thread.esp0) | 65 | #define signal_pt_regs() ((struct pt_regs *)current->thread.esp0) |
66 | #define current_user_stack_pointer() rdusp() | ||
66 | #endif /* __KERNEL__ */ | 67 | #endif /* __KERNEL__ */ |
67 | #endif /* __ASSEMBLY__ */ | 68 | #endif /* __ASSEMBLY__ */ |
68 | #endif /* _H8300_PTRACE_H */ | 69 | #endif /* _H8300_PTRACE_H */ |