Revision 681f8c29 hw/apic.c
b/hw/apic.c | ||
---|---|---|
566 | 566 |
d = (current_time - s->initial_count_load_time) >> |
567 | 567 |
s->count_shift; |
568 | 568 |
if (s->lvt[APIC_LVT_TIMER] & APIC_LVT_TIMER_PERIODIC) { |
569 |
if (!s->initial_count) |
|
570 |
goto no_timer; |
|
569 | 571 |
d = ((d / ((uint64_t)s->initial_count + 1)) + 1) * ((uint64_t)s->initial_count + 1); |
570 | 572 |
} else { |
571 | 573 |
if (d >= s->initial_count) |
Also available in: Unified diff