From 8626c1aa5ffcb8bb7cd34fdb7ee7abc7cb8cc3d4 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 25 Sep 2009 09:49:02 +0000 Subject: [PATCH] the HPET timers resolution is REALLY high. The time conversion was off by 1000. XenServer boots correctly and in reasonable time, now (meaning hpet timers work). I guess on real hw the bios doesn't correctly program the hpet timers, so we'll need a bit more work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33289 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/timers/x86_hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/timers/x86_hpet.c b/src/system/kernel/arch/x86/timers/x86_hpet.c index 084e8ea4a9..644da6cd3a 100644 --- a/src/system/kernel/arch/x86/timers/x86_hpet.c +++ b/src/system/kernel/arch/x86/timers/x86_hpet.c @@ -59,7 +59,7 @@ hpet_set_hardware_timer(bigtime_t relativeTimeout) //dprintf("getting value\n"); timerValue = relativeTimeout; - timerValue *= 1000000; + timerValue *= 1000000000; timerValue /= sHPETRegs->period; //dprintf("adding hpet counter value\n"); timerValue += sHPETRegs->counter;