From patchwork Tue May 24 00:04:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 68422 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp350730qge; Mon, 23 May 2016 17:06:48 -0700 (PDT) X-Received: by 10.98.94.71 with SMTP id s68mr2268737pfb.43.1464048408565; Mon, 23 May 2016 17:06:48 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66si55429417pfb.190.2016.05.23.17.06.48; Mon, 23 May 2016 17:06:48 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753585AbcEXAGo (ORCPT + 30 others); Mon, 23 May 2016 20:06:44 -0400 Received: from mail-bl2on0060.outbound.protection.outlook.com ([65.55.169.60]:4077 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751849AbcEXAGg (ORCPT ); Mon, 23 May 2016 20:06:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=O4jrSHAV7DjXmr44XZ6xszjYOYp376dp8kXbznNJFv4=; b=0pFPGddHBQJPWgsZ9SeHlU1AIdNKYlCiqaLvKSzfjq06aGqDK+fACkDIWsl8/U2vBcvju61VsYp3Cjobfb41T6Aykua6QsX9sF/v2428mynkavyBLQpL9/nZjwLDvD6446vU6rzGaEzLnSl1mRlqgAkXSpi3aCmZnviE/bwwhCk= Authentication-Results: arndb.de; dkim=none (message not signed) header.d=none;arndb.de; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (50.233.148.158) by SN1PR07MB2238.namprd07.prod.outlook.com (10.164.47.144) with Microsoft SMTP Server (TLS) id 15.1.497.12; Tue, 24 May 2016 00:06:31 +0000 From: Yury Norov To: , , , , , , , CC: , , , , , , , , , , , , , , , , Andrew Pinski , Andrew Pinski Subject: [PATCH 23/23] arm64:ilp32: add ARM64_ILP32 to Kconfig Date: Tue, 24 May 2016 03:04:52 +0300 Message-ID: <1464048292-30136-24-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1464048292-30136-1-git-send-email-ynorov@caviumnetworks.com> References: <1464048292-30136-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [50.233.148.158] X-ClientProxiedBy: DM2PR0501CA0025.namprd05.prod.outlook.com (10.162.29.163) To SN1PR07MB2238.namprd07.prod.outlook.com (10.164.47.144) X-MS-Office365-Filtering-Correlation-Id: dccca33c-bf02-4352-cecf-08d383674337 X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2238; 2:ciaucPbbIPdeUiqFlNv9uQsHcGXTVqhgC++NKfBcfAZAvSqiT4r8OZhcqbFEbFyaKpOSl3gdwusVKRBXssidtmQNWm7kZ+llK/487CgbskrpQFsD1L/QAvZ6qY0ZyTe6RTF89NxIqyydMbCkS+H7K1ht6emIuNeAhCkmOkgzV0WQVkiLuImOyM9vf4FbWIMS; 3:WUtAMS0bzjJi8piTbgTY8TZNJtcaV87r/SvvonpK8LDzw5gVjTD3YufPWu+dBBUpwU+wTQLZtl9fxGi5BAVx/FcD65g1kLYRy9eHI0FFNTZS1pGUPcFIlI8v5hdxkUgF X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR07MB2238; X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4hSoNlbSocOk7RYr1ISz5VpmPnUrHPHicP2bKOSkHz5q4Dhsiyah/r3RrqhxfKgl2k3GrSawjHSsnHnCWiZueqi3qNLFRZTHV0AR0vm2VdykDhc3+TxdEUSrHfASclFG6yNnM4KlnO/A0gG3plv4bQiYCA2Ha+iXoKRe/lzjCf5w1umX7ioVMom7LG7cTbyybGKuQ3dj4M6iZu+BPeF/foo/JsZ1p7uFKd08KNzOQ8B4oA+j2xKQa/4ML1cC6pmbP73W0oMnS0u6Qnggqb2kD2eozMCgZ1iVV+DxgSgBSPUXwBTbIFLANc8ozv83pp1SqDTcoJ70MVwK9tA1qyjSW/+WHFhsQukOzK2OxYJvT0165hhfRkGn05oSTs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:SN1PR07MB2238; BCL:0; PCL:0; RULEID:; SRVR:SN1PR07MB2238; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2238; 4:FUHk+JEz9WMQBep0G1KWjjh7beLkxvQ0gc9lsEUW617mBFmImUiv+0uFSS0j1etm4kngb/wK7LDlJ4AFalfxEPc/b9T8re9hP8tfsNTLncT+B6tiCu0h80ryEfcxptEfeSIKxRT6MHauNuSyzulkht3XBgd24Pq9LVwOar57wkBlYBd0b8r+keh7+P5RtPaqimbLL6qegHGiyynxV855A3ZvK9q44cqONgUSluzU66QL8sQPt7haD03g3kbQujafT+IyHqzqTQ0J8AVI4Wl7aHO5NH28DAz3OkuRfL0qurJirgYxJQ2qRWib9oMI1Z9b91FT3hebYKWh976002Aa7Ct1KSjpKhnTLroWQxUf28tVwwZFmdPXqBmLfsc0UjZv X-Forefront-PRVS: 09525C61DB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(47776003)(66066001)(92566002)(5008740100001)(77096005)(76506005)(8676002)(229853001)(107886002)(4001430100002)(2950100001)(189998001)(5004730100002)(5001770100001)(33646002)(6116002)(2906002)(42186005)(586003)(19580405001)(81166006)(5003940100001)(48376002)(2201001)(50226002)(50986999)(50466002)(36756003)(76176999)(4326007)(19580395003)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB2238; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2238; 23:8tae51i2Sxnl/JMHRbicqZt90jP/1eBmQWhSrzAiCJe2KuHOokk1lYS0kqN5FHPDPskWXL/Up8Hn24n7/xom/GjRSwH7aZkapvpNSd5aFmz6vky1tzImwIkSW+Mql7t6J1452dJpkmDBLpuILx1W5NhlQYYWTs11fgsohn8Z10xtJRxSjUwvT81wM6DIPJKw300WduKPESEYvh4qQBwsByIXmeawLlLNqIvrXbMVQLWAQvQG/+G1SCcA5M2hVYjZFki3o8n8dqYjGhXGwqAVvUDDDYgogcX+gW+ksKbe0yITCi3wMkD5tdCMp+jfA4RaWYBY2D22DNVrNNHBGQvxi6Y8w0y1aPBMZOyTgpT86zCFvoe7j+KiBo1qgBW5BdFuECQ7rmm6F+pAx9HJIEvdtnmBRX23JcZQkCFz7V1Xz/iwR8gv29/Whv5KPoBC9Ivf1PyFYwtH460nZG5ysDLOjd3vrKV1LYZLFdu2XfpJLk8Um/13jCkGozI0/aVFJtjIuQeaqk1fx1Ujy6xqW17G/g8DIovNBCnvn0yb0zXTVBIvX/2u+768PgpnqUWyiTNMkmvIvAqhco99oh6m6KDiC1Hyzj6psYN2Z8ND+ffKb7Hq3fG8RClw6SZrwPIBArrirb9r4FudpJ9AN75rWhvrI0G+EOEo8e9GYpZ4j0XMWcAPfizyzqH6ReYSx4LvRdAh5EU1nh48P2PbtZSg2B8R6mSJ5GzgjSRm6TJ9QJar8Yi5NJ+6PNmv418ZWhyZm/vsZriLGbp2EdPqQ7p6BbmnX8Cj6uAfwtqlHIVIOC04iJ4+u4n9NfTLfql8cMIYF+FQi1d7mBn8pbVWFFduxia9ZR/eHsm929PQmAKdH5FTKwcQVYehV9PMZRf5EN8JCx+ulxxy0j1pYNfNnSq6W70vIUsXVSPTLjO7SZc/ccBY9yvUseFXXuDeg1Mw3D5JNjTT X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2238; 5:ABNMJJM32neZixLaDvpd2Q50smuZ9FIKSBf3KVGmFdJ1oltWzw/bAUXWTe9MF97I2pUraSb1fmbQe7+M3bEz0hW4mqn5kwGKZHLStRUq94GlM2HtEdAmTX5FeUnWQsffh4E4861dmEvbMqqOK7FC1A==; 24:5Db0Xh3O2a6w1OcdPk+cGSseqe2xxGmYAkiWUGv7Rvp3AFH3aONHKai10PcHq/Ip07yyclm0g6Vz4paIzY0MCjJmM6CT0NVs3wF4olGIKvQ=; 7:WLT1p0uOc6bNvD2orwCpx1HVzZ+2W85Q3zukG7xR7LkPfHHWr9E8yJUg7waD0gpMhQ5EJ0dF+BV4hE7cQaEquYoZHETFGMzNtt1KRDJqnVNxzbA7Y5H/aFIfez7loohaaj8znEH0cWFpb6zATXgahv3Yt4zQi/mC/OrVUnJIXqEKtymvmk0HAD82GO1f+ASJ SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2016 00:06:31.9941 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2238 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.5.0 diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0bb7adc..765d7c2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -926,12 +926,13 @@ 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" def_bool y depends on ARM64_4K_PAGES || EXPERT + select COMPAT select HAVE_UID16 select OLD_SIGSUSPEND3 select COMPAT_OLD_SIGACTION @@ -947,6 +948,15 @@ config AARCH32_EL0 If you want to execute 32-bit userspace applications, say Y. +config ARM64_ILP32 + bool "Kernel support for ILP32" + select COMPAT + select COMPAT_WRAPPER + 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