From patchwork Mon Jan 9 11:29:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9504499 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 42BF660757 for ; Mon, 9 Jan 2017 11:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 242D8284B8 for ; Mon, 9 Jan 2017 11:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 189CC284BB; Mon, 9 Jan 2017 11:55:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DFA69284B9 for ; Mon, 9 Jan 2017 11:55:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cQYXx-0002Iq-0b; Mon, 09 Jan 2017 11:55:29 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQYXl-0001zn-1G for linux-arm-kernel@bombadil.infradead.org; Mon, 09 Jan 2017 11:55:17 +0000 Received: from mail-by2nam03on0086.outbound.protection.outlook.com ([104.47.42.86] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQYEI-000791-Im for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2017 11:35:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=30M961sH/2siQH6mk7Qrm7rYfJ5LOJfParknMU5dWNY=; b=aEUZdWVhKXdCUTwAN2cINglTRwY13e+Xv0JNpwy5PzQrEhNj1PUIuDQPECkbLeU0+z82Osb3g1+AEJt0DW4K3w2JjpfSvW95Wkl2EYKrKuT7n/LKni1Ov1Yp3LYnNRZjaEOifsUz4aYcnBHmXOsza3DWwywdAFmZG37ND8q32hw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (103.78.20.242) by CY1PR07MB2247.namprd07.prod.outlook.com (10.164.112.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Mon, 9 Jan 2017 11:35:01 +0000 From: Yury Norov To: , , , "linux-arch @ vger . kernel . org Arnd Bergmann" , Catalin Marinas Subject: [PATCH 20/20] arm64:ilp32: add ARM64_ILP32 to Kconfig Date: Mon, 9 Jan 2017 16:59:57 +0530 Message-ID: <1483961397-8599-21-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483961397-8599-1-git-send-email-ynorov@caviumnetworks.com> References: <1483961397-8599-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [103.78.20.242] X-ClientProxiedBy: HE1PR0802CA0005.eurprd08.prod.outlook.com (10.172.123.143) To CY1PR07MB2247.namprd07.prod.outlook.com (10.164.112.149) X-MS-Office365-Filtering-Correlation-Id: d7133463-2ca1-4a51-d6db-08d438838d00 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR07MB2247; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2247; 3:AsVkoDuQjY+04SdkQVC384431hjq180LPI9I4o7dpTndbcxM8JkafPhZTto8bQ0kidxMZpk0a4Oy4d3tGtJFLSneDmnawlqgMv2X+9zBR7GyWMDn2LnI9lNOSoCIchWGQJ8+aPofpfEw8wv66SaQD+tK2WFDI29mqtDUTdn4cUIyxbD7GXM3LHGXz1HpHv1vB9FpypafUCq41Nmsr/Sm5YvnpSuVKAFkgGIb/6MqKnE5MyrxyGXOVuRxAnfO9YO/pBvEipHUgMwc1IjUIP1Xzg==; 25:CVuwSH40GyNcvq7iS1fJeyueQG2Bz5EIm4+FbiLxzmWZbdtnQxJjLtWw5DepEQecmADeA0U7rugl+kKPIv6za6l9y72/BNhU6fkb3Zg1dKcwW00mL+CjQrLx8OVEycGAugfL57vePATN1x3vF3Cv8D010cJgd1FNrrwi8hAQ/vLZnFWqlrp3vRR/vt/5rj5HZyNng/Mo3pS8cg0I7XFR0kjrw5b8cL8596Q2PSS+am+5vN+IrqGTBLysX234fGxkHLxLF2G5fCjd7HrqeUCgSqFW317Y0G+3EHb92Iw4bHEIUE57jiX8VTCLEUJOvVJahWox0lEXTRhun0dQXFnSV//P/E0dLyR/biLvEWhrawJeYvObn+QEb7vultUucNHQB5Yzlyk+73Xe+zcQDb+9mKrG/HRO9J7z0PSkcfo/wdfH1ObVK6QyTrJrxQ7JNrUU+61dtGc9Uwl7aQEVMQ2RTg== X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2247; 31:eCm21H/HtmZsn7XnvZJ4zBCKXgSzBR9DWydzYQTnJDVULhoTwyAxKjpOSKME17IS2K9BpSOfmYbz43UA9o2YZ8a2GP3lFSsLt1buzlml5OhYpRLk8qTc2+OHijO4f7GnKfEcjdyhAXasr2Y6POEpl1m4MVkeA7Iacs2AkKKhyxIyT5ehcTzYG51ZiC44KyFg/7Mu712nAo0nFi8aOSdBfbV9vN2IepBtkz+ZH9cflPivvU2YEdmKFG519LpIjh/m; 20:X2OBh7i/+eTOKLGaXwgYNLCwysV+M0nKqsOeohXI0DKL6EoF/CM7hFylU5oHgkTdil+1yZNf3DDHZspdIeYG6uUAhCaarWH6q/YvRtHSfa8/h+tC5vrjrMlYS9ra/sar9gilMPSDKpbY7gNGf8OshT+toAnV2/HNLJufiN+C/vm8iJsC2bT2ehsKvmba96far3Xf+bcTZUsoHLjBXWZWLwJXNYuI5adORb6/tL3Le9QJpHS0t7O6yr354kDWPyBrOMRCTlDl/mLspe/1OY3aaY0QILvJLUFhG6PueVD6LreqmTxsnm2ARlzzQ6vJtKD9wtq+rk/ZfhDeEXjGsSUdF722/1Oi7cD2MsJXJvGhFoGjaoolqD2/EFAXNstaMO0DP/QJOzvksKetE/BOFvETWS+zZolSkvyLo1IRl7qGKJzTIVKMHW2P2rjQvYwk/z9j5jK24dNet8tkx7t6gWDIUSgd2JzyoMHZgLQas2z9iPXJ7fXhnTjhp99cSRDezWGRGyETxhfsh34d3JEHsCClBW5ZZFqdYNVIhZJp+Yc4aHQ5gBWjJNE7nsA8//Eru9dwImNXttLWz/I91bRUzDAj1CQsY9IkdtStAVQPlNi1TK0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:CY1PR07MB2247; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2247; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2247; 4:GpZLo6j0NdVIqy4GYWHACDX1M6WIC7eBVCBS8XIGcjCT3epf5GLiqqzYCchkQRHdnAFi1aybeSUtreKWCs2JR01TZ4g00x6kd0vmw4ot+Xr7Xg1bMqMDXy9wKYXLdCUo1j4HX0N+xl09mSbRggqMwEXlhEKyffBXwPMd+ney9xcnhiO9lHdDc7fKXUXtJHmFDLqOFBbf7Dc70tId/XT6NSJEwb+AzioZAnPrjD4IoiGZ3QRdNY6v8w2cuTO4mcbg3k0qQDmPek769NK2ofTRz5hMgqLSZ0CtMkxAppm4K7EfCA2BFWoUThy7dH3VDSP4LQxEmkD5TMhQG+izoylQ/PuaP+B7YYjb/EJdHbOBZPwfppDlmAEIbIe8ftp+PTA5PBC8WbiBuPqaUz06kAPfjVaGz5oi2t9kXYzYAfq5jsajTzvaNJ/YqWvpsCIxhMozaqww2iDHdArpdlQwNGeqWUcKjHLRikV+T+UHPcTxj2UrlqvG5NUxFNs+wrrDYkOGY5gyEwJbCE8sz9K97xXT5Vy6R/03zc5XY21ZsJsse0Y2aKAfBcuroaAzDBLv80jd0iGErZ/L/YuRVLfS8Sn6tIH2V7HvTttY3pFeaUel9ZAJHPXYWGFw4XrtauBnsKUa X-Forefront-PRVS: 0182DBBB05 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(189002)(199003)(76176999)(42186005)(5003940100001)(6666003)(92566002)(101416001)(50986999)(33646002)(189998001)(2201001)(2950100002)(76506005)(48376002)(66066001)(3846002)(6486002)(6116002)(47776003)(6496003)(36756003)(305945005)(2906002)(68736007)(7736002)(25786008)(4326007)(107886002)(54906002)(105586002)(106356001)(5001770100001)(81166006)(38730400001)(8676002)(97736004)(81156014)(7416002)(4001430100002)(50466002)(50226002)(5660300001)(39060400001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2247; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2247; 23:03Zh0U/4mov59NiP48ini8L38SEk6GT80XzfyoZtW?= =?us-ascii?Q?nxq4Bpvw7sUu3PW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7vAhoJTMY9eEiCJk3PNMBPZ0+7EG6389g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2247; 7:lCDIsxF/2gx3QRN/XhshaBlyqql/7cmJxd4HPeQcZtB/hlaDrM4Bz3f8nCPYQIxyjJwzq5DfTkicoNn+ZmyM9Z+3y4Yh2SLEshylWL5gsBbM4GNbt6GPr2yJf3sNUhWWp27EEJ555e7go63+QIrEWkr6q5Ju96uErZZuly7EZBH9fCFJnnUlE9VkIHNEWGWPZVFUqCMZY5wGql5pHvATejOJ9kpG6mwNYou6bzjudzuv6pYD4LmoW2iOwTzSavmP1btEplJ4vtQbY5AsrvknyQmVOsZEtTjOrD+FvgIreQmgBogy3Zw5aOLFqechPaUXQlK3C1BXE2hUmKoUoNvs7Wf3OJ4O6/qKds+Ziwe3L+0Z01lXiaO0Tuitj2IeX0PpFnjxHCtABeVvwYgX41PnoP9Om14X88tXkdVeRrq7UfG2arstKhk+48RjxerSc//siEsRGmhl7zy6+xcYQApYUw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2017 11:35:01.4368 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2247 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170109_063510_733235_E8148F4B X-CRM114-Status: GOOD ( 10.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Pinski , Heiko Carstens , Chris Metcalf , Yury Norov , philipp.tomsich@theobroma-systems.com, Joseph Myers , zhouchengming1@huawei.com, Steve Ellcey , Prasun.Kapoor@caviumnetworks.com, Andreas Schwab , agraf@suse.de, szabolcs.nagy@arm.com, geert@linux-m68k.org, Adam Borowski , manuel.montezelo@gmail.com, Chris Metcalf , Andrew Pinski , linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, Bamvor Zhangjian , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch@mentor.com, Andrew Pinski , Ramana Radhakrishnan , schwidefsky@de.ibm.com, davem@davemloft.net, christoph.muellner@theobroma-systems.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/Kconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index e668ace..bf34424 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1009,7 +1009,7 @@ source "fs/Kconfig.binfmt" config COMPAT bool - depends on AARCH32_EL0 + depends on AARCH32_EL0 || ARM64_ILP32 config AARCH32_EL0 bool "Kernel support for 32-bit EL0" @@ -1031,6 +1031,14 @@ config AARCH32_EL0 If you want to execute 32-bit userspace applications, say Y. +config ARM64_ILP32 + bool "Kernel support for ILP32" + select COMPAT + help + This option enables support for AArch64 ILP32 user space. ILP32 + is an ABI where long and pointers are 32bits but it uses the AARCH64 + instruction set. + config SYSVIPC_COMPAT def_bool y depends on COMPAT && SYSVIPC