projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c5b4a3
)
[SPARC64]: Add regs_return_value().
author
David S. Miller
<davem@davemloft.net>
Tue, 19 Feb 2008 08:31:22 +0000
(
00:31
-0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/include/asm-sparc64/ptrace.h
b/include/asm-sparc64/ptrace.h
index
8617c3a
..
67341cf
100644
(file)
--- a/
include/asm-sparc64/ptrace.h
+++ b/
include/asm-sparc64/ptrace.h
@@
-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