From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMgjs-0001bX-LL for qemu-devel@nongnu.org; Thu, 01 Mar 2007 03:34:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMgjq-0001aN-NP for qemu-devel@nongnu.org; Thu, 01 Mar 2007 03:34:12 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMgjq-0001aF-Dd for qemu-devel@nongnu.org; Thu, 01 Mar 2007 03:34:10 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMgjp-0004xJ-Bo for qemu-devel@nongnu.org; Thu, 01 Mar 2007 03:34:09 -0500 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id EDFA2D63303 for ; Thu, 1 Mar 2007 10:37:55 +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 BVvxEpcntaNU for ; Thu, 1 Mar 2007 10:37:54 +0200 (EET) Received: from localhost.localdomain (xps.velesys.com [10.0.0.92]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id DE2C9D63309 for ; Thu, 1 Mar 2007 10:37:54 +0200 (EET) Date: Thu, 1 Mar 2007 10:17:06 +0300 From: "Kirill A. Shutemov" Message-ID: <20070301071706.GA5943@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eAbsdosE1cNLO4uF" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] Syscall clock_gettime and clock_getres implementaion 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 --eAbsdosE1cNLO4uF Content-Type: multipart/mixed; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Patch in the attachment --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="qemu-0.9.0-alt-syscalls-clock.patch" --- qemu-0.9.0.orig/linux-user/syscall.c 2007-02-28 22:44:24 +0300 +++ qemu-0.9.0/linux-user/syscall.c 2007-02-28 22:46:01 +0300 @@ -4163,6 +4163,28 @@ case TARGET_NR_getdomainname: goto unimplemented_nowarn; #endif +#ifdef TARGET_NR_clock_gettime + case TARGET_NR_clock_gettime: + { + struct timespec ts; + ret = get_errno(clock_gettime(arg1, &ts)); + if (!is_error(ret)) { + host_to_target_timespec(arg2, &ts); + } + break; + } +#endif +#ifdef TARGET_NR_clock_getres + case TARGET_NR_clock_getres: + { + struct timespec ts; + ret = get_errno(clock_getres(arg1, &ts)); + if (!is_error(ret)) { + host_to_target_timespec(arg2, &ts); + } + break; + } +#endif default: unimplemented: gemu_log("qemu: Unsupported syscall: %d\n", num); --- qemu-0.9.0.orig/Makefile.target 2007-02-28 22:53:44 +0300 +++ qemu-0.9.0/Makefile.target 2007-02-28 23:00:21 +0300 @@ -206,6 +206,7 @@ ifdef CONFIG_LINUX_USER OBJS= main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o \ elfload.o linuxload.o +LIBS+= -lrt ifdef TARGET_HAS_BFLT OBJS+= flatload.o endif --J/dobhs11T7y2rNN-- --eAbsdosE1cNLO4uF 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) iD8DBQFF5n3ybWYnhzC5v6oRAnkvAJ9FWRTLJ0t//5zk4TycgUGhLYIUtACdFKkI hiasdLj/dyvXNOkK6As2SA0= =WtSI -----END PGP SIGNATURE----- --eAbsdosE1cNLO4uF--