From patchwork Fri May 27 13:00:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 627167 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rGRs64mlkz9sf9 for ; Fri, 27 May 2016 23:37:30 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=NFC/0YST; dkim-atps=neutral Received: from localhost ([::1]:45868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6HxA-0001LY-Ks for incoming@patchwork.ozlabs.org; Fri, 27 May 2016 09:37:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6HOA-0007t9-TX for qemu-devel@nongnu.org; Fri, 27 May 2016 09:01:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6HO5-0001LN-MD for qemu-devel@nongnu.org; Fri, 27 May 2016 09:01:17 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:36722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6HO5-0001LH-EO for qemu-devel@nongnu.org; Fri, 27 May 2016 09:01:13 -0400 Received: by mail-lf0-x234.google.com with SMTP id b73so23109548lfb.3 for ; Fri, 27 May 2016 06:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VPGDLCL/rCqghy7NcqnmsUTi7f/Y4Xxtb3AKl0/xUKk=; b=NFC/0YSTvUfPXx7ws/MgGR0Mi4USL9CNCJTXLVGx9Dmut03gyYIgNeKH3a0gk7rfVy 1nK7ysfUhTUdos1iRW5MnTlfdXe5w2U2mCXFNPWxd0HELD8QIozTVNl+hcFbfqb+Abs2 zDynkxP04d7TkcrbqsUAoNzgrrexBnudwaahE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VPGDLCL/rCqghy7NcqnmsUTi7f/Y4Xxtb3AKl0/xUKk=; b=kmLodSvjfgYIxtp+2xqO9g1hqu3cgKDEL569xjtI5YhpmLKb8u71kCvLV33UQA8TmT fJbaNAvhVik2iCTARFatfq3QXUTC5837RtlxOrsGsVmpkJUIs6eiq1ki3Ug6AzPHlmg2 N15sE4iNHvwiFE6KQpa8csaKG068GCbNwRWhiHeNMRevN3M6mQCPFhj64HBMshv2EJTU cO8Ir9LkpHB9BgSE5yhtRlIYDbtJsF0s3shwCzEMs7G3yxPkQA74MpUS3ISehCJekiT7 DI7KybWlUTQbxksGZFQnpq3PpDHdZVDnatmEJLu3JKau/xZlev3h3aQuU2h9GvZgYHxt TZTQ== X-Gm-Message-State: ALyK8tLaVr9WIEQEuooBV8QbVHJ5xdPTkEsv4hhCuUNQyTUWJwJ+oYHTEcM9nxZSlXShI29J X-Received: by 10.25.162.76 with SMTP id l73mr4393959lfe.45.1464354072643; Fri, 27 May 2016 06:01:12 -0700 (PDT) Received: from beaming.home (91-157-168-132.elisa-laajakaista.fi. [91.157.168.132]) by smtp.gmail.com with ESMTPSA id n16sm2281066lfg.31.2016.05.27.06.01.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 May 2016 06:01:11 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 27 May 2016 16:00:23 +0300 Message-Id: <716f3fbef26b583d207f8b7c98cadfa9dda69c6b.1464353863.git.riku.voipio@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::234 Subject: [Qemu-devel] [PULL v2 32/38] linux-user: x86_64: Don't use 16-bit UIDs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell The 64-bit x86 syscall ABI uses 32-bit UIDs; only define USE_UID16 for 32-bit x86. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 9e2b3c2..34af15a 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -55,7 +55,8 @@ #define TARGET_IOC_NRBITS 8 #define TARGET_IOC_TYPEBITS 8 -#if defined(TARGET_I386) || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ +#if (defined(TARGET_I386) && defined(TARGET_ABI32)) \ + || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ || defined(TARGET_SPARC) \ || defined(TARGET_M68K) || defined(TARGET_SH4) || defined(TARGET_CRIS) /* 16 bit uid wrappers emulation */