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: 65143 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp716582lbc; Tue, 5 Apr 2016 15:13:46 -0700 (PDT) X-Received: by 10.98.86.157 with SMTP id h29mr33222911pfj.105.1459894425189; Tue, 05 Apr 2016 15:13:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si8181235pfi.42.2016.04.05.15.13.44; Tue, 05 Apr 2016 15:13:45 -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 S964840AbcDEWNb (ORCPT + 29 others); Tue, 5 Apr 2016 18:13:31 -0400 Received: from mail-bl2on0073.outbound.protection.outlook.com ([65.55.169.73]:65510 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933827AbcDEWN1 (ORCPT ); Tue, 5 Apr 2016 18:13:27 -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=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: , , , CC: , , , , , , , , , , , , , , , , Andrew Pinski , Andrew Pinski , Philipp Tomsich 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:nTuJhYnmaDrk8tc79ttolbhIxj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S: 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+jV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rAjqFDUCvCezHJpNUsk066hFY3k7rQE17Xw= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: 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 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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.5.0 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