mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]>
This commit is contained in:
parent
5208ba24e7
commit
1ca97bb541
7 changed files with 14 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#define profile_pc(regs) instruction_pointer(regs)
|
||||
#define current_pt_regs() \
|
||||
(struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
|
||||
#define current_user_stack_pointer() rdusp()
|
||||
|
||||
#define arch_has_single_step() (1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue