Fixed PIT timer reads.

This commit is contained in:
TomW 2014-07-10 21:32:49 +01:00
commit b89e792f8f

View file

@ -16,7 +16,15 @@ extern int timer_start;
} \
} while (0)
#define timer_clock() timer_end_period(cycles)
#define timer_clock() \
do \
{ \
int diff = timer_start - cycles; \
timer_count -= diff; \
timer_start = cycles; \
timer_process(); \
timer_update_outstanding(); \
} while (0)
void timer_process();
void timer_update_outstanding();