From patchwork Mon May 3 17:07:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 51518 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4C678B7D16 for ; Tue, 4 May 2010 03:22:38 +1000 (EST) Received: from localhost ([127.0.0.1]:59378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8zLD-0002K2-Sk for incoming@patchwork.ozlabs.org; Mon, 03 May 2010 13:21:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8z8T-0007eo-Fy for qemu-devel@nongnu.org; Mon, 03 May 2010 13:08:49 -0400 Received: from [140.186.70.92] (port=59090 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8z8S-0007eX-3D for qemu-devel@nongnu.org; Mon, 03 May 2010 13:08:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8z8Q-0000Gu-Qe for qemu-devel@nongnu.org; Mon, 03 May 2010 13:08:47 -0400 Received: from mail-qy0-f188.google.com ([209.85.221.188]:45614) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8z8Q-0000FH-Nf for qemu-devel@nongnu.org; Mon, 03 May 2010 13:08:46 -0400 Received: by mail-qy0-f188.google.com with SMTP id 26so4138413qyk.19 for ; Mon, 03 May 2010 10:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:x-mailer:in-reply-to:references; bh=cQhf/2daOiyHU6ErN60DTTYbS4GyUMxxDg9Fe8fLl1U=; b=tESm5Rp3pkudQWNlHCBj5HZLv/oLL1cnxixIZRyO5a7Jikp+JqT1XYj3/5HidryKDF Q58yPJU1nd+6e26g6S+b+k2G7d4HskCAwSqlPhYlmy9vJjcQvb+ZGJP7pY6SQfrMeMUR 6qXtmRHQzgoEGwhf9nLpd5XxZXWMMii9RJ0vk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; b=RJvSgskeV6L0kOLO5PNoEqUSCGwO3/gJuHlWcjxUgKkWzsvgOQyvmQbwHryXGNfbB8 fC44c9FXXS3aQ6nEUxZS5ROUYrOCO7ccUnnCZQA4p8N8IoDnGpNNHd68jiRKlrVno8Df lHjnBwYCfI9xbVGdYB0PV9TE3h1P5yQtmCaRU= Received: by 10.224.65.208 with SMTP id k16mr3373027qai.137.1272906526556; Mon, 03 May 2010 10:08:46 -0700 (PDT) Received: from localhost.localdomain (are.twiddle.net [75.149.56.221]) by mx.google.com with ESMTPS id 2sm9954190qwi.29.2010.05.03.10.08.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 May 2010 10:08:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 3 May 2010 10:07:54 -0700 Message-Id: <1272906475-14480-7-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1272906475-14480-6-git-send-email-rth@twiddle.net> References: <1272906475-14480-1-git-send-email-rth@twiddle.net> <1272906475-14480-2-git-send-email-rth@twiddle.net> <1272906475-14480-3-git-send-email-rth@twiddle.net> <1272906475-14480-4-git-send-email-rth@twiddle.net> <1272906475-14480-5-git-send-email-rth@twiddle.net> <1272906475-14480-6-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 6/7] alpha-linux-user: Fix sigsuspend parameters. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Alpha passes the signal set in a register, not by reference. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8a6cbaf..899b76f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5072,10 +5072,15 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, case TARGET_NR_sigsuspend: { sigset_t set; +#if defined(TARGET_ALPHA) + abi_ulong mask = arg1; + target_to_host_old_sigset(&set, &mask); +#else if (!(p = lock_user(VERIFY_READ, arg1, sizeof(target_sigset_t), 1))) goto efault; target_to_host_old_sigset(&set, p); unlock_user(p, arg1, 0); +#endif ret = get_errno(sigsuspend(&set)); } break;