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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user