From patchwork Tue Feb 25 12:38:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 25290 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2D17F20543 for ; Tue, 25 Feb 2014 12:41:43 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id x3sf955904qcv.1 for ; Tue, 25 Feb 2014 04:41:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=gM+lkWy6FXPlRgpoGbhbgkdxWBuBppQq6brYlF+uJQY=; b=Y9iO6qIlmVBuPvF/F1Ywg2MIvhuNYxRpIGfIhvkwJUm2iH/hykT0Ohies14cIVAomA zW0wN0OU0Vtjn2X14zL3mgYVviq2FccwXBZkKlxGpBo2X9IJnmNKnmcx9wgpQelhRVXO 9k/DBQWABd6Xj1u3pvbD/eLHHdhvy6eSN/kSeWLfjwnjI6FCzeqJz3z1iCLiqkJ4s8Or 2ADjyG+E9sUni+l7uSL/tmdGgrA5B5Zjp4J4p7c1NppTPP6MWFS08x2Tg/TQ0MFkod4H TawJ+p72vkq0SzbipC6IRQjokO3v+jfYmvLLuIYd04dysaIXFPUPXwjC4OALpR6S0iuE l8jw== X-Gm-Message-State: ALoCoQnrOJNrLT6uznQZUzh1/ps71Llfq9ZYyk3xSKJ1EKhN/uLsFzdxqg656D4fpkuz+vyDE3n/ X-Received: by 10.58.248.170 with SMTP id yn10mr538659vec.17.1393332102923; Tue, 25 Feb 2014 04:41:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.117 with SMTP id 108ls2442026qgw.77.gmail; Tue, 25 Feb 2014 04:41:42 -0800 (PST) X-Received: by 10.220.161.132 with SMTP id r4mr955113vcx.29.1393332102693; Tue, 25 Feb 2014 04:41:42 -0800 (PST) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id uy8si6766211vcb.55.2014.02.25.04.41.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 04:41:42 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id lh14so7271507vcb.10 for ; Tue, 25 Feb 2014 04:41:42 -0800 (PST) X-Received: by 10.58.207.13 with SMTP id ls13mr975661vec.13.1393332102448; Tue, 25 Feb 2014 04:41:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp135999vcz; Tue, 25 Feb 2014 04:41:42 -0800 (PST) X-Received: by 10.194.143.40 with SMTP id sb8mr24583242wjb.15.1393332101569; Tue, 25 Feb 2014 04:41:41 -0800 (PST) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id wj1si7248191wjc.57.2014.02.25.04.41.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Feb 2014 04:41:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIHIu-0004Bs-8O; Tue, 25 Feb 2014 12:40:08 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIHIg-0000Vj-KD; Tue, 25 Feb 2014 12:39:54 +0000 Received: from mail-wi0-f172.google.com ([209.85.212.172]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIHIR-0000TR-ER for linux-arm-kernel@lists.infradead.org; Tue, 25 Feb 2014 12:39:41 +0000 Received: by mail-wi0-f172.google.com with SMTP id e4so4415301wiv.5 for ; Tue, 25 Feb 2014 04:39:16 -0800 (PST) X-Received: by 10.180.108.199 with SMTP id hm7mr19527807wib.1.1393331946719; Tue, 25 Feb 2014 04:39:06 -0800 (PST) Received: from ards-macbook-pro.local (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id jw4sm50423292wjc.20.2014.02.25.04.39.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 04:39:06 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, peter.maydell@linaro.org Subject: [PATCH resend 2/3] arm64: add AT_HWCAP2 support for 32-bit compat Date: Tue, 25 Feb 2014 13:38:58 +0100 Message-Id: <1393331939-31289-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393331939-31289-1-git-send-email-ard.biesheuvel@linaro.org> References: <1393331939-31289-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140225_073939_725706_003ACC70 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.172 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: ryan.arnold@linaro.org, Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add support for the ELF auxv entry AT_HWCAP2 when running 32-bit ELF binaries in compat mode. Signed-off-by: Ard Biesheuvel Acked-by: Catalin Marinas --- arch/arm64/include/asm/hwcap.h | 3 ++- arch/arm64/kernel/setup.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h index 6cddbb0c9f54..9a4cbd60c88e 100644 --- a/arch/arm64/include/asm/hwcap.h +++ b/arch/arm64/include/asm/hwcap.h @@ -41,7 +41,8 @@ #ifdef CONFIG_COMPAT #define COMPAT_ELF_HWCAP (compat_elf_hwcap) -extern unsigned int compat_elf_hwcap; +#define COMPAT_ELF_HWCAP2 (compat_elf_hwcap2) +extern unsigned int compat_elf_hwcap, compat_elf_hwcap2; #endif extern unsigned long elf_hwcap; diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index c8e9effe52e1..349c49260f09 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -69,6 +69,7 @@ EXPORT_SYMBOL_GPL(elf_hwcap); COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\ COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV) unsigned int compat_elf_hwcap __read_mostly = COMPAT_ELF_HWCAP_DEFAULT; +unsigned int compat_elf_hwcap2 __read_mostly; #endif static const char *cpu_name;