]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sparc: Add user_stack_pointer().
authorDavid S. Miller <davem@davemloft.net>
Sun, 27 Jul 2008 08:59:21 +0000 (01:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jul 2008 00:32:58 +0000 (17:32 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/ptrace_32.h
arch/sparc/include/asm/ptrace_64.h

index 0401cc7ec38e9cd04f839333c5825b97d6795271..d43c88b86834d2fc08986b32e1191b4962bf0f9d 100644 (file)
@@ -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
index a682e66d5c4a635e09cc3941d22f74150d87e948..ec6d45c84cd0e4a0a0aa12cbc6e229b975d6f38e 100644 (file)
@@ -146,6 +146,7 @@ do {        current_thread_info()->syscall_noerror = 1; \
 } while (0)
 #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
 #define instruction_pointer(regs) ((regs)->tpc)
+#define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
 #define regs_return_value(regs) ((regs)->u_regs[UREG_I0])
 #ifdef CONFIG_SMP
 extern unsigned long profile_pc(struct pt_regs *);