[coreboot] r3677 - trunk/payloads/libpayload/i386
svn at coreboot.org
svn at coreboot.org
Mon Oct 20 19:08:08 CEST 2008
Author: jcrouse
Date: 2008-10-20 19:08:08 +0200 (Mon, 20 Oct 2008)
New Revision: 3677
Modified:
trunk/payloads/libpayload/i386/timer.c
Log:
[PATCH] libpayload: Fix overflow in _delay function
On faster machines, delta might be more then 32 bits
Signed-off-by: Jordan Crouse <jordan.crouse at amd.com>
Acked-by: Patrick Georgi <patrick.georgi at coresystems.de>
Modified: trunk/payloads/libpayload/i386/timer.c
===================================================================
--- trunk/payloads/libpayload/i386/timer.c 2008-10-20 17:07:47 UTC (rev 3676)
+++ trunk/payloads/libpayload/i386/timer.c 2008-10-20 17:08:08 UTC (rev 3677)
@@ -75,7 +75,7 @@
return cpu_khz;
}
-static inline void _delay(unsigned int delta)
+static inline void _delay(unsigned long long delta)
{
unsigned long long timeout = rdtsc() + delta;
while (rdtsc() < timeout) ;
More information about the coreboot
mailing list