From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Jvayi-0008Tc-MT for mharc-grub-devel@gnu.org; Mon, 12 May 2008 12:34:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jvayg-0008R2-3C for grub-devel@gnu.org; Mon, 12 May 2008 12:34:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jvayd-0008Ns-AJ for grub-devel@gnu.org; Mon, 12 May 2008 12:34:17 -0400 Received: from [199.232.76.173] (port=57319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jvayc-0008Na-VI for grub-devel@gnu.org; Mon, 12 May 2008 12:34:14 -0400 Received: from gateway12.websitewelcome.com ([69.93.154.13]:37627) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Jvayc-000180-Fn for grub-devel@gnu.org; Mon, 12 May 2008 12:34:14 -0400 Received: (qmail 32243 invoked from network); 12 May 2008 16:35:47 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway12.websitewelcome.com with SMTP; 12 May 2008 16:35:47 -0000 Received: from [146.187.186.50] (port=57391 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1JvayX-0000oV-5f for grub-devel@gnu.org; Mon, 12 May 2008 11:34:09 -0500 Date: Mon, 12 May 2008 09:33:54 -0700 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20080512093354.2770e1cf@gibibit.com> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Uh0AGA7kprHoUqzvOw9Ktkr"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Higher resolution timers X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 16:34:18 -0000 --Sig_/Uh0AGA7kprHoUqzvOw9Ktkr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable To implement a nice GUI with some animations, it will be important to have a timer with a better resolution than 1/18 second (which appears to be the current GRUB timer resolution on the PC). What would be the best way to do this? Possibilities that I am aware of are:=20 * RDTSC instruction (must calibrate with RTC at startup?) * HPET (complex to use?) * RTC (can we set the timer interrupt rate to >18 Hz?) Does anyone have any thoughts on these options? I think that using the TSC (w/ RDTSC instruction) and calibrating it with a quick 2-3 RTC tick loop at startup might be the easiest option. Regards, Colin --Sig_/Uh0AGA7kprHoUqzvOw9Ktkr Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkgocYAACgkQokx8fzcGbYfn4QCfYVYrRYAvlVMiMhmHU6pF9Ucz IvQAnA169KjhoCA/abaM2P+Qp07kSEux =CFuJ -----END PGP SIGNATURE----- --Sig_/Uh0AGA7kprHoUqzvOw9Ktkr--