On faster machines, delta might be more then 32 bits
Signed-off-by: Jordan Crouse <[EMAIL PROTECTED]>
Index: libpayload/i386/timer.c
===================================================================
--- libpayload.orig/i386/timer.c 2008-10-17 14:37:38.000000000 -0600
+++ libpayload/i386/timer.c 2008-10-17 14:48:53.000000000 -0600
@@ -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) ;
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot