From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HaPHg-0004Kp-Vu for qemu-devel@nongnu.org; Sun, 08 Apr 2007 00:45:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HaPHf-0004KQ-Fn for qemu-devel@nongnu.org; Sun, 08 Apr 2007 00:45:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HaPHf-0004KN-A0 for qemu-devel@nongnu.org; Sun, 08 Apr 2007 00:45:47 -0400 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HaPDy-0001fw-DJ for qemu-devel@nongnu.org; Sun, 08 Apr 2007 00:41:58 -0400 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 25365D67EC3 for ; Sun, 8 Apr 2007 07:43:27 +0300 (EEST) Received: from partizan.velesys.com ([10.0.0.24]) by localhost (partizan.velesys.com [10.0.0.24]) (amavisd-new, port 10024) with ESMTP id jHmT7GvooEm9 for ; Sun, 8 Apr 2007 07:43:25 +0300 (EEST) Received: from localhost.localdomain (mm-185-159-57-86.adsl.mgts.by [86.57.159.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 39E27D67BF6 for ; Sun, 8 Apr 2007 07:43:24 +0300 (EEST) Date: Sun, 8 Apr 2007 07:41:25 +0300 From: "Kirill A. Shutemov" Message-ID: <20070408044125.GA31440@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZmUaFz6apKcXQszQ" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] ARM EABI pread/pwrite fix 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 --ZmUaFz6apKcXQszQ Content-Type: multipart/mixed; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Add ARM EABI syscall interface support for pread/pwrite. Patch in the=3D20 atachement. --=20 Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="pread-pwrite-arm-eabi.patch" diff --git a/qemu.spec b/qemu.spec diff --git a/qemu/linux-user/syscall.c b/qemu/linux-user/syscall.c index 33778aa..8b0f845 100644 --- a/qemu/linux-user/syscall.c +++ b/qemu/linux-user/syscall.c @@ -3528,12 +3528,24 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, break; #ifdef TARGET_NR_pread case TARGET_NR_pread: +#ifdef TARGET_ARM + if (((CPUARMState *)cpu_env)->eabi) + { + arg4 = arg5; + } +#endif page_unprotect_range(arg2, arg3); p = lock_user(arg2, arg3, 0); ret = get_errno(pread(arg1, p, arg3, arg4)); unlock_user(p, arg2, ret); break; case TARGET_NR_pwrite: +#ifdef TARGET_ARM + if (((CPUARMState *)cpu_env)->eabi) + { + arg4 = arg5; + } +#endif p = lock_user(arg2, arg3, 1); ret = get_errno(pwrite(arg1, p, arg3, arg4)); unlock_user(p, arg2, 0); --hHWLQfXTYDoKhP50-- --ZmUaFz6apKcXQszQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGGHKMbWYnhzC5v6oRAueMAJ9DLvjc7bR4kU9sandmbGdq3weaUQCfUtCJ ESmiOgPDuXS2JlIRx5+pbq0= =DUFQ -----END PGP SIGNATURE----- --ZmUaFz6apKcXQszQ--