From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: + preadv-pwritev-add-preadv-and-pwritev-system-calls.patch added to -mm tree Date: Mon, 02 Feb 2009 13:51:27 -0800 Message-ID: <49876ADF.80201@zytor.com> References: <200902022135.n12LZa1a010673@imap1.linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200902022135.n12LZa1a010673@imap1.linux-foundation.org> Sender: linux-arch-owner@vger.kernel.org To: akpm@linux-foundation.org Cc: mm-commits@vger.kernel.org, kraxel@redhat.com, arnd@arndb.de, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, mingo@elte.hu, ralf@linux-mips.org, tglx@linutronix.de, viro@zeniv.linux.org.uk List-Id: linux-api@vger.kernel.org > > This prototype has one problem though: On 32bit archs is the (64bit) > offset argument unaligned, which the syscall ABI of several archs doesn't > allow to do. At least s390 needs a wrapper in glibc to handle this. As > we'll need a wrappers in glibc anyway I've decided to push problem to > glibc entriely and use a syscall prototype which works without > arch-specific wrappers inside the kernel: The offset argument is > explicitly splitted into two 32bit values. > This is also an excellent example of why having syscall stubs autogenerated would be a very good thing, to avoid these kinds of abortions polluting the ABIs of *every* architecture... -hpa