Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162499AbYCSWtR (ORCPT ); Wed, 19 Mar 2008 18:49:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965798AbYCSVSy (ORCPT ); Wed, 19 Mar 2008 17:18:54 -0400 Received: from mx1.redhat.com ([66.187.233.31]:55898 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965793AbYCSVSv (ORCPT ); Wed, 19 Mar 2008 17:18:51 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Linus Torvalds , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: Ingo Molnar , Thomas Gleixner Cc: David Miller , sparclinux@vger.kernel.org Cc: Paul Mackerras , linuxppc-dev@ozlabs.org Cc: Richard Henderson Cc: tony.luck@intel.com, linux-ia64@vger.kernel.org X-Fcc: ~/Mail/linus Subject: [PATCH 2/8] alpha ptrace: forced_successful_syscall_return() In-Reply-To: Roland McGrath's message of Wednesday, 19 March 2008 14:17:14 -0700 <20080319211714.8B14226F995@magilla.localdomain> References: <20080319211714.8B14226F995@magilla.localdomain> X-Zippy-Says: I'm mentally OVERDRAWN! What's that SIGNPOST up ahead? Where's ROD STERLING when you really need him? Message-Id: <20080319211841.253E126F995@magilla.localdomain> Date: Wed, 19 Mar 2008 14:18:41 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 959 Lines: 25 Define the forced_successful_syscall_return() macro to pair with our force_successful_syscall_return() definition. Signed-off-by: Roland McGrath --- include/asm-alpha/ptrace.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/asm-alpha/ptrace.h b/include/asm-alpha/ptrace.h index 32c7a5c..1cc330b 100644 --- a/include/asm-alpha/ptrace.h +++ b/include/asm-alpha/ptrace.h @@ -77,6 +77,7 @@ extern void show_regs(struct pt_regs *); ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1) #define force_successful_syscall_return() (task_pt_regs(current)->r0 = 0) +#define forced_successful_syscall_return() (task_pt_regs(current)->r0 == 0) #endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/