aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/ptrace_64.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-27 04:59:21 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-27 20:32:58 -0400
commitac76cfd0881b5dc45a9301e3a4f73ff9ccc2d2f2 (patch)
treebdf97af626c7e412a43acb53cac6aa1b042ead3a /arch/sparc/include/asm/ptrace_64.h
parent95698466cf50b707d8a55af87e4dbec56b1533cb (diff)
sparc: Add user_stack_pointer().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/ptrace_64.h')
-rw-r--r--arch/sparc/include/asm/ptrace_64.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/ptrace_64.h b/arch/sparc/include/asm/ptrace_64.h
index a682e66d5c4a..ec6d45c84cd0 100644
--- a/arch/sparc/include/asm/ptrace_64.h
+++ b/arch/sparc/include/asm/ptrace_64.h
@@ -146,6 +146,7 @@ do { current_thread_info()->syscall_noerror = 1; \
146} while (0) 146} while (0)
147#define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV)) 147#define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
148#define instruction_pointer(regs) ((regs)->tpc) 148#define instruction_pointer(regs) ((regs)->tpc)
149#define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
149#define regs_return_value(regs) ((regs)->u_regs[UREG_I0]) 150#define regs_return_value(regs) ((regs)->u_regs[UREG_I0])
150#ifdef CONFIG_SMP 151#ifdef CONFIG_SMP
151extern unsigned long profile_pc(struct pt_regs *); 152extern unsigned long profile_pc(struct pt_regs *);