On faster machines, delta might be more then 32 bits
Signed-off-by: Jordan Crouse jordan.crouse@amd.com 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) ;