Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753951AbbKLI6s (ORCPT ); Thu, 12 Nov 2015 03:58:48 -0500 Received: from mx2.suse.de ([195.135.220.15]:37643 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753700AbbKLI6r (ORCPT ); Thu, 12 Nov 2015 03:58:47 -0500 From: Andreas Schwab To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, Yury Norov , pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, catalin.marinas@arm.com, Nathan_Lynch@mentor.com, linux-kernel@vger.kernel.org, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , broonie@kernel.org, jan.dakinevich@gmail.com, Andrew Pinski , ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, andrey.konovalov@linaro.org, christoph.muellner@theobroma-systems.com Subject: Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> <20577001.4Nl3YnQ8k2@wuerfel> <87k2pojfsy.fsf@igel.home> <10433819.KzDuoxzSn7@wuerfel> X-Yow: I want the presidency so bad I can already taste the hors d'oeuvres. Date: Thu, 12 Nov 2015 09:58:43 +0100 In-Reply-To: <10433819.KzDuoxzSn7@wuerfel> (Arnd Bergmann's message of "Thu, 12 Nov 2015 00:23:43 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1185 Lines: 27 Arnd Bergmann writes: > I think either way is fine for the two examples. I think it's clear > that we want __NR_llseek as 62 and __NR_mmap2 as 222. Whether those > use the compat_sys_llseek/compat_sys_mmap2_wrapper or > sys_lseek/sys_mmap entry points is not overly important, we can use > whatever is more convenient to glibc: if we can kill off an > architecture specific wrapper function in glibc by adding one line > to the kernel, that seems worthwhile. Currently most off_t-like syscalls need a new glibc wrapper since the existing ones are either for 32bit off_t+off64_t (with split off64_t syscall arguments) or pure 64bit off_t architectures. Since ilp32 now (mostly) has 32bit off_t, but 64bit off_t-like syscalls neither of them fit. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/