From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJ9Qg-0000wg-8W for qemu-devel@nongnu.org; Mon, 19 Feb 2007 09:23:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJ9Qe-0000uU-BV for qemu-devel@nongnu.org; Mon, 19 Feb 2007 09:23:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJ9Qe-0000uC-1L for qemu-devel@nongnu.org; Mon, 19 Feb 2007 09:23:44 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HJ9Qd-0007qc-J0 for qemu-devel@nongnu.org; Mon, 19 Feb 2007 09:23:43 -0500 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 739F9D63300 for ; Mon, 19 Feb 2007 16:25:46 +0200 (EET) 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 pVm-LkuAnFx2 for ; Mon, 19 Feb 2007 16:25:44 +0200 (EET) Received: from localhost.localdomain (mm-110-150-57-86.adsl.mgts.by [86.57.150.110]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 2D908D632F8 for ; Mon, 19 Feb 2007 16:25:44 +0200 (EET) Date: Mon, 19 Feb 2007 16:23:40 +0300 From: "Kirill A. Shutemov" Message-ID: <20070219132340.GF25556@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J+eNKFoVC4T1DV3f" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] syscall mincore 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 --J+eNKFoVC4T1DV3f Content-Type: multipart/mixed; boundary="/Gk0KcsbyUMelFU1" Content-Disposition: inline --/Gk0KcsbyUMelFU1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Patch from Debian patchset in the attachment. --/Gk0KcsbyUMelFU1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="31_syscall_mincore.patch" Content-Transfer-Encoding: quoted-printable --- linux-user/syscall.c.orig 2006-11-05 07:07:19.000000000 +0200 +++ linux-user/syscall.c 2006-11-05 07:07:25.000000000 +0200 @@ -3856,7 +3863,9 @@ long do_syscall(void *cpu_env, int num,=20 goto unimplemented; #ifdef TARGET_NR_mincore case TARGET_NR_mincore: - goto unimplemented; + page_unprotect_range((void*)arg3, ((size_t)arg2 + TARGET_PAGE_SIZE= - 1) / TARGET_PAGE_SIZE); + ret =3D get_errno(mincore((void*)arg1, (size_t)arg2, (unsigned cha= r*)arg3)); + break; #endif #ifdef TARGET_NR_madvise case TARGET_NR_madvise: --/Gk0KcsbyUMelFU1-- --J+eNKFoVC4T1DV3f Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF2aTcbWYnhzC5v6oRAmquAKCFeOk0aHfAj7IByseQFDRQ3xRwygCfTW1l TF/c2lu7c0a6jD/WeC/zD7s= =W5K6 -----END PGP SIGNATURE----- --J+eNKFoVC4T1DV3f--