Message ID | 1443564860-31208-14-git-send-email-ynorov@caviumnetworks.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCHN3LUNYYJBB6E4VSYAKGQEHKS32QY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id ACC3B22B1E for <linaro@patches.linaro.org>; Tue, 29 Sep 2015 22:19:37 +0000 (UTC) Received: by laak17 with SMTP id k17sf11594540laa.3 for <linaro@patches.linaro.org>; Tue, 29 Sep 2015 15:19:36 -0700 (PDT) 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:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :spamdiagnosticoutput:spamdiagnosticmetadata:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=jAK6U40/qR61tfDtri+/NvSDahgoi0G92l7lW0E1crI=; b=Z79F8/TwwCFZoRhi22K2ybLqI7HetTHZwdIJNumCHd0lsqYmct3kt/GsufkQUgzdfQ PnxH2N1foj28xGpVdPq+XqHI8wspg7sFpiTa5BADzEIMJKkM9Fe7k6OFliLA9jWwXsFQ 2zdmaz0o3HKxqADqwnPF4it+kWRHxi7i+FIYEvIlqrdOPG0AXPZcdmYd5nHpGuAmO9zZ YNyQw4AGkSATtCTXC1nhGZoKPyTtR9qYJ2YzcJoTcomRVKMa7JItK7yY6501/KHQBZ6u LbegvtsqcDM+JkXLjQofIhF5ULZDzIKvmFPmb23LH9K8RsjUZ+7cRrHBSIHm28Sy7Q6G UzDA== X-Gm-Message-State: ALoCoQkrt9K2KVVFMOAv9kmpmhEjY6ec0HWgYB38S9OmZr8VOipyjui/NIogY49u5aVPTYow6gcl X-Received: by 10.195.12.234 with SMTP id et10mr47142wjd.2.1443565176367; Tue, 29 Sep 2015 15:19:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.130 with SMTP id m2ls7904laf.1.gmail; Tue, 29 Sep 2015 15:19:36 -0700 (PDT) X-Received: by 10.112.159.39 with SMTP id wz7mr106130lbb.94.1443565176071; Tue, 29 Sep 2015 15:19:36 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id xv11si11982607lab.53.2015.09.29.15.19.36 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2015 15:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by laclj5 with SMTP id lj5so25433947lac.3 for <patchwork-forward@linaro.org>; Tue, 29 Sep 2015 15:19:36 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr105025lbb.35.1443565175930; Tue, 29 Sep 2015 15:19:35 -0700 (PDT) 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.112.59.35 with SMTP id w3csp2398245lbq; Tue, 29 Sep 2015 15:19:35 -0700 (PDT) X-Received: by 10.66.252.5 with SMTP id zo5mr475980pac.96.1443565174969; Tue, 29 Sep 2015 15:19:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uy2si40513022pac.86.2015.09.29.15.19.34; Tue, 29 Sep 2015 15:19:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754540AbbI2WTX (ORCPT <rfc822;pingbo.wen@linaro.org> + 30 others); Tue, 29 Sep 2015 18:19:23 -0400 Received: from mail-bn1on0063.outbound.protection.outlook.com ([157.56.110.63]:49881 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755282AbbI2WRa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 29 Sep 2015 18:17:30 -0400 Received: from localhost (91.78.158.8) by CO2PR07MB619.namprd07.prod.outlook.com (10.141.228.151) with Microsoft SMTP Server (TLS) id 15.1.274.16; Tue, 29 Sep 2015 22:17:28 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <catalin.marinas@arm.com>, <arnd@arndb.de>, <agraf@suse.de>, <bamvor.zhangjian@huawei.com> CC: <yury.norov@gmail.com>, <philipp.tomsich@theobroma-systems.com>, <apinski@cavium.com>, <christoph.muellner@theobroma-systems.com>, <klimov.linux@gmail.com>, Yury Norov <ynorov@caviumnetworks.com> Subject: [PATCH v5 13/23] arm64:ilp32: share HWCAP between LP64 and ILP32 Date: Wed, 30 Sep 2015 01:14:10 +0300 Message-ID: <1443564860-31208-14-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443564860-31208-1-git-send-email-ynorov@caviumnetworks.com> References: <1443564860-31208-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [91.78.158.8] X-ClientProxiedBy: AM3PR07CA0023.eurprd07.prod.outlook.com (10.141.45.151) To CO2PR07MB619.namprd07.prod.outlook.com (10.141.228.151) X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 2:Qf6QHSeWw9uL9jlPDWwrE5wVk9bYbJXgewDAPjpbB2FQu7JPR8Mu9LZ33kT01DnGmaTvrzTDmaagCmYntzJPtG+rB25g+uFwuXKn41jtdKN35+yAGxRZ7unBKLEDs1mJL1/28TnmuPRZRFYtbjoUyQNEwbhTW+gxUFFk1gF4WnY=; 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WR0xDyPmnEblCGdlh8BkFxTp4cipQSGE3AaPR93Tryc7x2fa4wYuNosYw= X-Microsoft-Antispam-PRVS: <CO2PR07MB6195E10DC94D14102F3CCEDEE4E0@CO2PR07MB619.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001); SRVR:CO2PR07MB619; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB619; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 4:50+r8lBum4+LjU2BaskuyNQPpwqwvbDrcThXkHJzyqdhW6V+3oDppIfm/1RJKyTjFRNK+VRqp2UPCHbJn4uLjBA8/7yjP4EgeMQ26mjAuzKSIVhelYY0qMO3lYR0xbQNneZ0UlehPTPdbVFcUY04u0BCrB1Nz4UXXCPeIgTi93yH0/GytkqNKsOKAxoG4ZQB3oMBWYnUquzfqFcNfcp4zZgZNzpgpJrZiA8X7/JFVoZTHF+zQOT8neizHsM0kGTJsBFo8rgLwZh0PDgkUymqgLfYiGHy6bce+bC4K8fz01zGy0YtZqDILOwSkPE0+xCe+qrtBJDFFTLZ9xpcyphGK4JjePj9eXtU4lt04Mr8+/A= X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(189002)(199003)(42186005)(66066001)(50466002)(64706001)(122386002)(2950100001)(48376002)(47776003)(5008740100001)(77156002)(46102003)(33646002)(68736005)(97736004)(5001770100001)(62966003)(92566002)(5001860100001)(50986999)(189998001)(5001920100001)(4001540100001)(101416001)(5007970100001)(40100003)(5001960100002)(2201001)(105586002)(5003940100001)(5001830100001)(76506005)(87976001)(81156007)(229853001)(106356001)(19580395003)(19580405001)(5004730100002)(76176999)(107886002)(50226001)(77096005)(36756003)(4001430100001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB619; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB619; 23:K/O/QqBBOL6J3f0UtiBiBkeXUBKfox03kmd0hZNBP8?= =?us-ascii?Q?lV/btpTk2VMzObPci7ZTX7uDfR2B4wisRRdyPwZmJVdk4cuUqKBi6RZ0E9nY?= =?us-ascii?Q?nJndB4SZ7JJvJTPEPpOVteHss/xBJyut9pZmmFIKTG6Ws+WwyWcOSG5BtHKR?= =?us-ascii?Q?cPf8i/ycSCSackiTqe/qo6+Wtgyq8ltY5Z2zD27uDHdo2TnAmOdNXvkm6QmT?= =?us-ascii?Q?DQws+AcILcR+/xh5J2wYcV+vUt5I1haYtf9zyAyVge6a+JsW7r/6nfIhZ64/?= =?us-ascii?Q?WaWBP5DTOcJ6RJ8W8u3ZKKATP22x8pFi5sLPsHOQ5p3+zNLcx6uKxWPIB6Qs?= =?us-ascii?Q?YVaLp7YqR6+YSVDX8KVo61Uc97iVeKLKE/kKGmBsxPMtg1Fskx6jQqXB1NoU?= =?us-ascii?Q?0XiGeWqdG6S7IZQ7/wE/CFdQ0CCLCsG2L4Ao30Fyq77ubR7ATTWUPTh6qbtw?= =?us-ascii?Q?EQ01LCGIHxSQD97pNKb6PPKm4pejhB/04uEIbEagGf5Ev/NTrBX+HaPAoQQA?= =?us-ascii?Q?gFqrp7CeLAfhKwabYcziBJHslTSzreyXD6fjZBoXDTIRbRkcbQEtZGwuyPJL?= =?us-ascii?Q?89Ok6QKnc7p7onFO09cn8qwcj6eCRHWqdHoqZyhWCB6pbG25/c280VBNw8HV?= =?us-ascii?Q?XHr5r7jrVKjaTo9sA92/8uUIiOG0NRblcpKJTz8hZOPh2TjbNq7iJ0sEVTXg?= =?us-ascii?Q?4grKRMnWrDLELhLVYJe6wMbXiKyxACqP7yaCFQ0H7zPlsRU/Tboz7hgPY2ln?= =?us-ascii?Q?OKg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d5ZCEgdeNhO/sdg5o6gjNA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2015 22:17:28.3611 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB619 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linux-kernel-owner@vger.kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mailfrom=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 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h index 0ad7351..1e5361e 100644 --- a/arch/arm64/include/asm/hwcap.h +++ b/arch/arm64/include/asm/hwcap.h @@ -47,9 +47,17 @@ #define ELF_HWCAP (elf_hwcap) #ifdef CONFIG_COMPAT -#define COMPAT_ELF_HWCAP (compat_elf_hwcap) -#define COMPAT_ELF_HWCAP2 (compat_elf_hwcap2) extern unsigned int compat_elf_hwcap, compat_elf_hwcap2; +#define COMPAT_ELF_HWCAP \ + (is_a32_compat_task() \ + ? compat_elf_hwcap \ + : elf_hwcap) + +#define COMPAT_ELF_HWCAP2 \ + (is_a32_compat_task() \ + ? compat_elf_hwcap2 \ + : 0) + #endif extern unsigned long elf_hwcap;