Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753343AbcD2QOy (ORCPT ); Fri, 29 Apr 2016 12:14:54 -0400 Received: from foss.arm.com ([217.140.101.70]:52176 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752759AbcD2QOx (ORCPT ); Fri, 29 Apr 2016 12:14:53 -0400 Date: Fri, 29 Apr 2016 17:14:46 +0100 From: Catalin Marinas To: Yury Norov Cc: linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, arnd@arndb.de, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, joseph@codesourcery.com, linux-doc@vger.kernel.org, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , broonie@kernel.org, bamvor.zhangjian@huawei.com, Andrew Pinski , schwidefsky@de.ibm.com, Nathan_Lynch@mentor.com, Philipp Tomsich , linux-arm-kernel@lists.infradead.org, christoph.muellner@theobroma-systems.com Subject: Re: [PATCH 25/25] arm64:ilp32: add ARM64_ILP32 to Kconfig Message-ID: <20160429161445.GE30316@e104818-lin.cambridge.arm.com> References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> <1459894127-17698-26-git-send-email-ynorov@caviumnetworks.com> <20160429160334.GD30316@e104818-lin.cambridge.arm.com> <20160429160855.GA16451@yury-N73SV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160429160855.GA16451@yury-N73SV> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 768 Lines: 22 On Fri, Apr 29, 2016 at 07:08:55PM +0300, Yury Norov wrote: > On Fri, Apr 29, 2016 at 05:03:34PM +0100, Catalin Marinas wrote: > > On Wed, Apr 06, 2016 at 01:08:47AM +0300, Yury Norov wrote: > > > +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. > > > > Is there any penalty for AArch32 tasks when selecting COMPAT_WRAPPER? > > No. AARCH32 doesn't define __SC_WRAP and so __SYSCALL macro is used, > which fills syscall table with sys_xxx versions, not compat_sys_xxx. Ah, I forgot it has its own unistd32.h. Thanks. -- Catalin