Fixed the 286+ CPU timer running.
This commit is contained in:
@@ -710,12 +710,8 @@ void leave_smm()
|
||||
}
|
||||
|
||||
#define OP_TABLE(name) ops_ ## name
|
||||
#define CLOCK_CYCLES(c) do { cycles -= (c); \
|
||||
if (TIMER_VAL_LESS_THAN_VAL(timer_target, (uint32_t)tsc)) \
|
||||
timer_process(); } while(0)
|
||||
#define CLOCK_CYCLES_ALWAYS(c) do { cycles -= (c); \
|
||||
if (TIMER_VAL_LESS_THAN_VAL(timer_target, (uint32_t)tsc)) \
|
||||
timer_process(); } while(0)
|
||||
#define CLOCK_CYCLES(c) cycles -= (c)
|
||||
#define CLOCK_CYCLES_ALWAYS(c) cycles -= (c)
|
||||
|
||||
#include "386_ops.h"
|
||||
|
||||
@@ -1138,10 +1134,10 @@ inrecomp=0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (TIMER_VAL_LESS_THAN_VAL(timer_target, (uint32_t)tsc))
|
||||
timer_process();
|
||||
}
|
||||
if (TIMER_VAL_LESS_THAN_VAL(timer_target, (uint32_t)tsc))
|
||||
timer_process();
|
||||
|
||||
cycles_main -= (cycles_start - cycles);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user