[PATCH 5/8] sparc64 ptrace: forced_successful_syscall_return()

Subsystems: the rest · Maintainer: Linus Torvalds

STALE6796d

2 messages, 2 authors, 2008-03-19 · open the first message on its own page

[PATCH 5/8] sparc64 ptrace: forced_successful_syscall_return()

From: Roland McGrath <hidden>
Date: 2008-03-19 22:51:51

Define the forced_successful_syscall_return() macro to
pair with our force_successful_syscall_return() definition.

Signed-off-by: Roland McGrath <redacted>
---
 include/asm-sparc64/ptrace.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/asm-sparc64/ptrace.h b/include/asm-sparc64/ptrace.h
index 6da1978..3f8826e 100644
--- a/include/asm-sparc64/ptrace.h
+++ b/include/asm-sparc64/ptrace.h
@@ -100,6 +100,8 @@ struct sparc_trapf {
 #define force_successful_syscall_return()	    \
 do {	current_thread_info()->syscall_noerror = 1; \
 } while (0)
+#define forced_successful_syscall_return()	\
+	(current_thread_info()->syscall_noerror != 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])

Re: [PATCH 5/8] sparc64 ptrace: forced_successful_syscall_return()

From: David Miller <davem@davemloft.net>
Date: 2008-03-19 23:04:16

From: Roland McGrath <redacted>
Date: Wed, 19 Mar 2008 14:20:01 -0700 (PDT)
Define the forced_successful_syscall_return() macro to
pair with our force_successful_syscall_return() definition.

Signed-off-by: Roland McGrath <redacted>
Acked-by: David S. Miller <davem@davemloft.net>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help