Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K66gi-0007N2-N3 for mharc-grub-devel@gnu.org; Tue, 10 Jun 2008 12:27:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K66gg-0007Lg-Rl for grub-devel@gnu.org; Tue, 10 Jun 2008 12:27:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K66ge-0007Kt-KT for grub-devel@gnu.org; Tue, 10 Jun 2008 12:27:09 -0400 Received: from [199.232.76.173] (port=49778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K66ge-0007Kq-HY for grub-devel@gnu.org; Tue, 10 Jun 2008 12:27:08 -0400 Received: from gateway01.websitewelcome.com ([69.93.126.19]:47388) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1K66gd-0007l9-UD for grub-devel@gnu.org; Tue, 10 Jun 2008 12:27:08 -0400 Received: (qmail 21303 invoked from network); 10 Jun 2008 16:38:23 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway01.websitewelcome.com with SMTP; 10 Jun 2008 16:38:23 -0000 Received: from c-67-185-142-228.hsd1.wa.comcast.net ([67.185.142.228]:53787 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1K66gZ-0000PH-5V for grub-devel@gnu.org; Tue, 10 Jun 2008 11:27:03 -0500 Date: Tue, 10 Jun 2008 09:26:42 -0700 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20080610092642.500b86c4@gibibit.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/kPjy1kfKf/e.TyT7/1QfaQ3"; 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: 64 bit arithmetic? 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: Tue, 10 Jun 2008 16:27:11 -0000 --Sig_/kPjy1kfKf/e.TyT7/1QfaQ3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I'm working on implementing a higher resolution timer using the x86 TSC. However, this entails 64-bit arithmetic since on a 2GHz machine it will overflow a 32-bit number every couple of seconds (the TSC counter CPU cycles since boot). So to convert the TSC value into a value in milliseconds, I need to do 64-bit division, but when I try to build GRUB now, I get undefined reference to `__udivdi3' Is this expected? Should it be possible for me to do division on grub_uint64_t types? BTW, I'm trying to add it to the kernel image, if this makes a difference. Thanks, Colin --Sig_/kPjy1kfKf/e.TyT7/1QfaQ3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkhOq0oACgkQokx8fzcGbYcqjgCaA+hqwZOpSq7ckzwKBttq8vKe z1QAoI8TbNClA+Gv3ZVaOwJi/mjOff8b =xZRw -----END PGP SIGNATURE----- --Sig_/kPjy1kfKf/e.TyT7/1QfaQ3--