aboutsummaryrefslogtreecommitdiff
path: root/include/asm-sparc64/ptrace.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-24 20:38:44 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-24 20:38:44 -0700
commite89227889cec6b66758b44c83f78dba337e5d699 (patch)
tree44fbf495ca2d0827e44bcc449a0f5177228dbdd8 /include/asm-sparc64/ptrace.h
parent4e8fd22bd421d7aa279bcb76189505a1f96bb7bf (diff)
parentdb7d9a4eb700be766cc9f29241483dbb1e748832 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
Diffstat (limited to 'include/asm-sparc64/ptrace.h')
-rw-r--r--include/asm-sparc64/ptrace.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-sparc64/ptrace.h b/include/asm-sparc64/ptrace.h
index 2d2b5a113d2..6194f771e9f 100644
--- a/include/asm-sparc64/ptrace.h
+++ b/include/asm-sparc64/ptrace.h
@@ -94,8 +94,9 @@ struct sparc_trapf {
#define STACKFRAME32_SZ sizeof(struct sparc_stackf32)
#ifdef __KERNEL__
-#define force_successful_syscall_return() \
- set_thread_flag(TIF_SYSCALL_SUCCESS)
+#define force_successful_syscall_return() \
+do { current_thread_info()->syscall_noerror = 1; \
+} while (0)
#define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
#define instruction_pointer(regs) ((regs)->tpc)
#ifdef CONFIG_SMP