]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SPARC64]: Add regs_return_value().
authorDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2008 08:31:22 +0000 (00:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2008 08:31:22 +0000 (00:31 -0800)
Needed for kretprobes.

Noticed by Ananth N Mavinakayanahalli.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc64/ptrace.h

index 8617c3a5143b266ba506f2b7512f4dc67ed3007b..67341cff2e6b28c1bc9932a9d09f0911dfc2aace 100644 (file)
@@ -102,6 +102,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 regs_return_value(regs) ((regs)->u_regs[UREG_I0])
 #ifdef CONFIG_SMP
 extern unsigned long profile_pc(struct pt_regs *);
 #else