From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpUfD-0000eB-Eo for qemu-devel@nongnu.org; Mon, 13 Oct 2008 17:09:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpUfC-0000d4-9w for qemu-devel@nongnu.org; Mon, 13 Oct 2008 17:09:14 -0400 Received: from [199.232.76.173] (port=50382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpUfB-0000cn-TO for qemu-devel@nongnu.org; Mon, 13 Oct 2008 17:09:13 -0400 Received: from hall.aurel32.net ([88.191.82.174]:33215) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KpUfB-0005ro-CZ for qemu-devel@nongnu.org; Mon, 13 Oct 2008 17:09:13 -0400 Date: Mon, 13 Oct 2008 23:09:05 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Add readahead syscall Message-ID: <20081013210905.GD18008@volta.aurel32.net> References: <1223492074-5677-1-git-send-email-kirill@shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1223492074-5677-1-git-send-email-kirill@shutemov.name> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Kirill A. Shutemov" Applied, thanks. On Wed, Oct 08, 2008 at 09:54:25PM +0300, Kirill A. Shutemov wrote: > Signed-off-by: Kirill A. Shutemov > --- > linux-user/syscall.c | 15 ++++++++++++++- > 1 files changed, 14 insertions(+), 1 deletions(-) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index f1f050e..dc7e561 100644 > --- a/linux-user/syscall.c > +++ b/linux-user/syscall.c > @@ -5761,7 +5761,20 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, > break; > #ifdef TARGET_NR_readahead > case TARGET_NR_readahead: > - goto unimplemented; > +#if TARGET_ABI_BITS == 32 > +#ifdef TARGET_ARM > + if (((CPUARMState *)cpu_env)->eabi) > + { > + arg2 = arg3; > + arg3 = arg4; > + arg4 = arg5; > + } > +#endif > + ret = get_errno(readahead(arg1, ((off64_t)arg3 << 32) | arg2, arg4)); > +#else > + ret = get_errno(readahead(arg1, arg2, arg3)); > +#endif > + break; > #endif > #ifdef TARGET_NR_setxattr > case TARGET_NR_setxattr: > -- > 1.5.6.5.GIT > > > > -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net