From patchwork Tue Sep 29 22:14:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 7291151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EB77DBEEA4 for ; Tue, 29 Sep 2015 22:38:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 21F78205E8 for ; Tue, 29 Sep 2015 22:38:45 +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 EF975205E5 for ; Tue, 29 Sep 2015 22:38:43 +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 1Zh3WI-0006vU-SA; Tue, 29 Sep 2015 22:37:10 +0000 Received: from mail-by2on0057.outbound.protection.outlook.com ([207.46.100.57] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zh3FC-0004ez-A3 for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2015 22:19:32 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (91.78.158.8) by CO2PR07MB617.namprd07.prod.outlook.com (10.141.228.143) with Microsoft SMTP Server (TLS) id 15.1.274.16; Tue, 29 Sep 2015 22:19:08 +0000 From: Yury Norov To: , , , , , Subject: [PATCH v5 23/23] arm64:ilp32: add ARM64_ILP32 to Kconfig Date: Wed, 30 Sep 2015 01:14:20 +0300 Message-ID: <1443564860-31208-24-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 X-Originating-IP: [91.78.158.8] X-ClientProxiedBy: AM3PR07CA0026.eurprd07.prod.outlook.com (10.141.45.154) To CO2PR07MB617.namprd07.prod.outlook.com (10.141.228.143) X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB617; 2:xTd+KLTyLucpOSvObamFZ0fJtFe8M2aFvZkBP1LWeO0k9FFmaY/ZpQIXIzOZtjUVNwRb0FOUhafPUXKEPwTOtbcFOmifB9mgCSVsRnWOFQn7p5fi3jdu31GSKVebST4KRe3vH7vy1Iyme10cWMFyyWy2aWBTgqbVUMHBK+HN1Ik=; 3:b+rNgMbbVg2SLLp4B2J/AabXFnK96O/aXTDeW1NDxF+NkWad4SHu8xx5yN20PgmJJvpJiSRUDO96Hu/KYkE/cCgWQZzvf9ISSF4hstgfX1WFkeN1oHpef4cb81CCfNbOsqCGDQlLqaQk8r0xxBzWEQ==; 25:8S8gofTFh2oczgsSJLbAgK/jR4PJqz0jiuT72bbaej8fr3DshI7GuSDlUg0oEAwy5Nvj01UEAs02O/UomA6YJJ2heunFE/PanQy4Y019RV3GHmlyZQmmXXwR5/4+8mMBP3xG70ZYkRmfO+A4FTnP2aLHwlwFbw8SX++re4hX8jjMQgJwF2cWQ7c0K0pbXzJ5ZXehP3ZJYhhiMrrFUnsg4t7qWI6voo/aQak+YEZz6GmbwoFCOMOio3AT69Ubu4hbmiXXWsM1yxcx4hPyZQHMLQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB617; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB617; 20:9NPJn2SDM0erz3fB2EWAdVKq5WouIenlD4ay4gyRTEq5rnuWaZdEb3Qf2+hGww45NBKFf+gpic0IvtycYqNmgMMtRcAlEQduXcdhJ2/m0WmYf8/tvQKSjZ5JJSrbaRXW5v8Ah36TCfqcUJrlPlhwjA08JoV+82JHJp7V79KLlgon6cdLil+zs3pld59dHa/T8KqvHWPmGElJxnpVsT52KXyxiJLeY0SGDm9b+ZIfXCvM8bfCnwuOzrp6ZiKzU6z7NNW5AR58Q0ASP3aEhUBonYOoLrFBfxc+Gul+Pd7E9Eti4cJYhxEACp5hjyroksm7RaiFdUm77R9pI70RDjf/C78z7sA7o8ObF5a3JR6lOt3tlDW8U4foAOOOKJsi4Rhzlye1rr71yHv542kStRBxM80LAbqhr+6Q6nQRIJ0HWg9sV5jkr1r/5wnhqKpB3NgA1KHjqWJU1GJqyg9sPAKJifSQCsU2fvOTYhahCm2QLcHgBTjTTpFkgG3Jq1ON1nFv0+U2sF+v6nuHQZ9kVBGu5DPX1y3aH8Hab+nVFEKIRODnT3EALuj17Yum3Z7GnBorNrBo+BnDbByFm1gRne/bvj9rqQkgoouWrnqEBDCuM64= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001); SRVR:CO2PR07MB617; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB617; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB617; 4:OboUn65oUMQa/ixFnZRrOs+fotHMHT5QhZNGW8ycbrE1SqlyMiIiZ5NlvZg1E96gMuVSpdw3z+fmTvcC/F9nn9Qf64k1qTIXyHSyqhb+W5X1gVORiOpeBuy9/b7650FES2EH9PlPwNAxzc80i0ksD7R/nzwt6DYHZJG5q5SczCoLcTwpdN0pMTo6xUwUy2cRsXNzOBPITsjGUWMFVUZ9RWvPRabv8M589mPp83EEoaDPs+CKxq2CwHct2phnDiSO5B0H7bORI70xX0LLurqbik8k249FxVV9KNYm1Hbm+CcUAdi5S3Ad8sOCdDHKxDhwLnHgWE8VVkWkif7w8Vf3v9u78CjXCGLHNtSq6dCxzPk= X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(199003)(189002)(50226001)(47776003)(64706001)(5003940100001)(19580405001)(105586002)(87976001)(62966003)(101416001)(50466002)(2950100001)(106356001)(189998001)(5008740100001)(33646002)(48376002)(66066001)(46102003)(5004730100002)(77156002)(92566002)(50986999)(36756003)(76176999)(5001960100002)(40100003)(122386002)(229853001)(97736004)(4001540100001)(42186005)(5007970100001)(77096005)(2201001)(76506005)(81156007)(107886002)(19580395003)(5001770100001)(68736005)(5001830100001)(5001860100001)(4001430100001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB617; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; CO2PR07MB617; 23:xRGJqC16SHTS94qFyxLc9uJjULhIXd3iRUAB6jo3bG?= =?us-ascii?Q?56FFHdcQL9y98Pwgvq8xc+U7aUU6VL+Zio0/XtmlKzeshSsfww36sTaWFDyC?= =?us-ascii?Q?gg97pxnXwsI+cPgk+liSAUQsyrqClEDupOnVN8OSUqgfYGhv660wmSkHnyLT?= =?us-ascii?Q?mg046Fy4zb87yy/c0MjdXFmVchhg0wyv9WXVk2f2Wd28abQz6RjAxZFF4N5P?= =?us-ascii?Q?J2AzWp1w4Fl25r/ciEJbkKVkcAT7bUXB7zZyHfwhK+fIs2ggmfHchonwzYeH?= =?us-ascii?Q?7W2OtVdGK0Boeasu6vNRMf2wDm1tHCE8A5rxoW/488EovZrelf/kRsKZnJoF?= =?us-ascii?Q?TWHJmV2EUBil35uZFaAs5JMWzww1k5Be34LvoemwIQk1eZks6UCbhTOqBFom?= =?us-ascii?Q?+pYunrWuQdnHawoJiToJo3Zi/yho+dOWd00sWjxZPJE18FYtdlhl+rR8/GaK?= =?us-ascii?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change-Diagnostics: 1; CO2PR07MB617; 5:ZTN9YSL0unkPSYc9DqbXsxwgNsjx8oi5ZSIFckmXU3vsSHc0CAsdE0kIWMmFajm/htFfmXSBQB/OklSUgKgvkIJ+WM3jEWNGziSnWHkln5cM8rs4E6UPKjiX8HYA/EfhfemFAANhcvGdBOQzjwbVpQ==; 24:oIHHqYzreJ8pfYfaIbCuj1kQGFjoUlcQMzOctknnXfH+yZTxcBxlRQ3KV2AA354gb/tnmXoddDPvIiiM23g4g9LKzfAkWn2BY8Y+Zo6o0nY=; 20:NdvuP04NTx3SCn6yQDbSXvxRqot7gfT4IfcWJe39qgu9fjOadWEhdMZVntIAfz5SAWAzJpbaQKknoK33cNddMw== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2015 22:19:08.4994 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB617 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150929_151930_404304_87CDC0A2 X-CRM114-Status: UNSURE ( 6.94 ) 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: yury.norov@gmail.com, klimov.linux@gmail.com, Yury Norov , apinski@cavium.com, philipp.tomsich@theobroma-systems.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=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index d1dc605..afbde9c 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -680,7 +680,7 @@ source "fs/Kconfig.binfmt" config COMPAT def_bool y - depends on AARCH32_EL0 + depends on AARCH32_EL0 || ARM64_ILP32 select COMPAT_BINFMT_ELF config AARCH32_EL0 @@ -702,6 +702,13 @@ config AARCH32_EL0 If you want to execute 32-bit userspace applications, say Y. +config ARM64_ILP32 + bool "Kernel support for ILP32" + 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 AARCH32_EL0 && SYSVIPC