From patchwork Tue Apr 5 22:08:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 8756231 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 203D09F39A for ; Tue, 5 Apr 2016 22:23:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 37C0D202BE for ; Tue, 5 Apr 2016 22:23:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5EF272021F for ; Tue, 5 Apr 2016 22:23:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1anZLp-0001qQ-TB; Tue, 05 Apr 2016 22:21:33 +0000 Received: from mail-bn1on0090.outbound.protection.outlook.com ([157.56.110.90] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1anZEo-0001Cv-L9 for linux-arm-kernel@lists.infradead.org; Tue, 05 Apr 2016 22:15:04 +0000 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=0YDhlT9aYbQCFZCFjWryg+aJE5/3TYgc+DR87N0v/Uo=; b=h4JbY+Yh7mtbomrCzJDf8449dtTE02l5ulDJz6EsxokfJFuUjEcX31J5bC2Y63eQrMJymAVHgchOo7cl0aN51DONyMvAc/Fnom0SMspVFpcMlxaPlWgtO7vMZrAuB7vqVDaPb1o0/sN4SU/U4vgMzWilMaQICYbvyr8U7Sc7fag= 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 (95.143.213.121) by CO2PR07MB619.namprd07.prod.outlook.com (10.141.228.151) with Microsoft SMTP Server (TLS) id 15.1.447.15; Tue, 5 Apr 2016 22:13:22 +0000 From: Yury Norov To: , , , Subject: [PATCH 25/25] arm64:ilp32: add ARM64_ILP32 to Kconfig Date: Wed, 6 Apr 2016 01:08:47 +0300 Message-ID: <1459894127-17698-26-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM2PR03CA0035.eurprd03.prod.outlook.com (10.160.207.45) To CO2PR07MB619.namprd07.prod.outlook.com (10.141.228.151) X-MS-Office365-Filtering-Correlation-Id: 6d490c32-35a3-4c62-025c-08d35d9f8083 X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 2:oem/m9wLaKnx4G7M8DwU0mAPiLfYCg5cAK28y7ai4jv5S90iOTCq4SmNrRFCWFlsOKyTpYaS6DO2xQZ/ywxST7ZnOybHwWcXz++RCHbcmIXNCJTgW3PYGEv9+/XhSReFLXgvFxdt4H7AmTqrfCJHa90hYzGPCL7wLGU7m/USMLvqGp9my7Uubsc8SapHjQhk; 3:jOigbNvTPatHzsvsFSgrXoWLSLih5iaRLSXSvOcRfQiUAm3rbGbFSegjroSS7l5zkEmICguxpS6xDHc3gDNA80HbcJbxvUV/EGyqmwmHvm4zCBrevmyb/9Gxm1rc7/DG; 25:nTuJhYnmaDrk8tc79ttolbhIxjmXWWxdcaNHxRBOj6QhbkeTFfvHyxENctBW/Iu0+8xuSQG1CuWspmOLg2mQtwVKRUkmGDxComFFPqh5CT+dI0IEP7ERJdGBLPr1gNHKoYVACyT8wjJmpyzFSlllr8Z8CBHNWKjQnH2x5ZF9HSwWKipkM1qax7WV/kOBNCsDlMwBDKSPJ09EcKs5hKt5JPtt1f8ZDhAFsXHa3eXq+gENLWmS3hAjgwloqLmWA9hUNT91xvkmLf1sFGQFe/gA37lfkUNjsdlMWvi7yKM5yK4DHzl9nDUh8aIUCKaCY1IEyw2Qzh3zYKOCoiNON7sH0to5i/bgGim8Sooe0qBATkU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB619; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 20:o1mMVdfKZ/MbsJGjeNG8VUBcyoxG0uPc/iIaZC2a2a6tODZfQOkiZEcYbOouaHQJ8kTnvkHnNtQdIAgLeH5rp5v5E4Kt89JVpYdaoJsI3VF4LoBsdqVlmmAmZBFYWC7vtBLWg3QhHAjqsoFlWp/ihsCZzHdQ5hig41s9/558Zwp1bDG43KUKPx7Z+2b4nW+H+kqgtDqxZaf/56Vm88N1zdnss/aB/KNhscL8ZwK05GcmAP0xSpynBXEZgU8RXct7Kt4IdEIHO0/hxflsW+7kTH4cjYlYruDxTZiQILsedfouP/kzltYjYBDQ/hTDn1EFAkDcQU1jno2lw/drEzGgRxRB+y+K4pUqxtpcdIQVVi9GyODRX9PLrJ/oO8w6SuEH1ftbxyBOrdxZKpq9mb1+IuxWG6zf2pwgxF4OobdAin+G4dN3iTFvbiWaBEMvyeo71qZDmyueoZUkEfYbS8ikFh+ziapapNOYYy/f+cDxEfoe9zBQXgoPmf6jrh/bieC6pg2UkTNa5SQ1wt4+/ea6/Qw1kLKcHK8abudqB5zG6sdPJLL0E7vqdXKUPHKITYoxIcuDB6epooMt2FBGpn6dSdbP5+R1etMvko21pPgfi4w= 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:CO2PR07MB619; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB619; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 4:NSjOCqoQtJ9dEanJ+i+qJYS0jcIcCvhiFM5J3YgRGpJy3FPNdSlldxmY6tmyCn6fto6SvodbnUq7Fn+7bQbaNnZtxuRUZ7AGqsxN1Fdyc2QkjaJibtthL04m+EOs6GcS+T3DKmq4Sa1KMyXKjpovN3By5q5KvHpk8S2IRzS7I/TKAJSM0OY1h9lVsLE5IG0odaBcq91AxURXrrE3a3WUET2rEMqtbNVcPhcG7a0NgdlldaIKf5SW+tam5yzH5zTPlOA/HK96HOo6hJovQ8xwmmjOfVnRv+5tti2saoDtBAf8v5eRE1KxB32jMuAqdKay3ZMbEUMk4KDSwM2rUwCTKg4s7KKydkPkJZpxqpCNIIdnIgjJHqtqTXq1kk0GX9NV X-Forefront-PRVS: 0903DD1D85 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(4326007)(586003)(5001770100001)(1096002)(50986999)(2950100001)(76176999)(5008740100001)(2201001)(2906002)(6116002)(77096005)(229853001)(3846002)(5004730100002)(33646002)(5003940100001)(36756003)(48376002)(42186005)(189998001)(81166005)(76506005)(66066001)(47776003)(50226001)(50466002)(19580405001)(19580395003)(92566002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB619; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB619; 23:7JTlX4Imj2flAZcXPusHNAbBsrP3NYDlt03HzW/gZeUpl/ed+a75yxRmFoOUdArO0jjMQiAl6uZQkhpqQfuzMoJgY04THt/5VxElUznymnKhexMFLrtH66YJSttmjdJsQp0qS3jZZENKHrgOyyo+jVYp8GCLvdG2vW0y9CnGZ7ZhmwOdfKYj+A5EafdxJj5NF3ZCpduaoKFaeio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nosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2016 22:13:22.2093 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB619 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160405_151419_794139_094A54F7 X-CRM114-Status: UNSURE ( 7.03 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, broonie@kernel.org, linux-doc@vger.kernel.org, heiko.carstens@de.ibm.com, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , ynorov@caviumnetworks.com, bamvor.zhangjian@huawei.com, Andrew Pinski , schwidefsky@de.ibm.com, Nathan_Lynch@mentor.com, Philipp Tomsich , joseph@codesourcery.com, 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-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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 46fc295..19d8e31 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -926,7 +926,7 @@ source "fs/Kconfig.binfmt" config COMPAT def_bool y - depends on AARCH32_EL0 + depends on AARCH32_EL0 || ARM64_ILP32 config AARCH32_EL0 bool "Kernel support for 32-bit EL0" @@ -946,6 +946,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_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