diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-27 01:59:21 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-27 17:32:58 -0700 |
commit | ac76cfd0881b5dc45a9301e3a4f73ff9ccc2d2f2 (patch) | |
tree | bdf97af626c7e412a43acb53cac6aa1b042ead3a /arch/sparc/include/asm/ptrace_32.h | |
parent | 95698466cf50b707d8a55af87e4dbec56b1533cb (diff) | |
download | op-kernel-dev-ac76cfd0881b5dc45a9301e3a4f73ff9ccc2d2f2.zip op-kernel-dev-ac76cfd0881b5dc45a9301e3a4f73ff9ccc2d2f2.tar.gz |
sparc: Add user_stack_pointer().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/ptrace_32.h')
-rw-r--r-- | arch/sparc/include/asm/ptrace_32.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/ptrace_32.h b/arch/sparc/include/asm/ptrace_32.h index 0401cc7..d43c88b 100644 --- a/arch/sparc/include/asm/ptrace_32.h +++ b/arch/sparc/include/asm/ptrace_32.h @@ -74,6 +74,7 @@ struct sparc_stackf { #define user_mode(regs) (!((regs)->psr & PSR_PS)) #define instruction_pointer(regs) ((regs)->pc) +#define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP]) unsigned long profile_pc(struct pt_regs *); extern void show_regs(struct pt_regs *); #endif |