| Submitter | Xin Li |
|---|---|
| Date | March 2, 2010, 5:06 a.m. |
| Message ID | <4B8C9CF3.8000700@rochester.edu> |
| Download | mbox | patch |
| Permalink | /patch/46623/ |
| State | New |
| Headers | show |
Comments
Patch
--- hw/hpet.c 2010-03-01 23:58:08.815931235 -0500 +++ hw/new_hpet.c 2010-03-01 23:55:07.316704119 -0500 @@ -220,10 +220,10 @@ if (timer_is_periodic(t) && period != 0) { if (t->config & HPET_TN_32BIT) { - while (hpet_time_after(cur_tick, t->cmp)) + while (!hpet_time_after(t->cmp, cur_tick)) t->cmp = (uint32_t)(t->cmp + t->period); } else - while (hpet_time_after64(cur_tick, t->cmp)) + while (!hpet_time_after64(t->cmp, cur_tick)) t->cmp += period; diff = hpet_calculate_diff(t, cur_tick);