mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:12:57 +00:00
[NTVDM]
The "WORKING_TIMER" disabled code is so obsolete that it doesn't even compile anymore. svn path=/trunk/; revision=67236
This commit is contained in:
parent
b673932d12
commit
7087659a28
1 changed files with 4 additions and 21 deletions
|
@ -33,11 +33,6 @@
|
||||||
*/
|
*/
|
||||||
// #define IPS_DISPLAY
|
// #define IPS_DISPLAY
|
||||||
|
|
||||||
/*
|
|
||||||
* Activate WORKING_TIMER when the PIT timing problem is fixed.
|
|
||||||
*/
|
|
||||||
// #define WORKING_TIMER
|
|
||||||
|
|
||||||
/* Processor speed */
|
/* Processor speed */
|
||||||
#define STEPS_PER_CYCLE 1024
|
#define STEPS_PER_CYCLE 1024
|
||||||
|
|
||||||
|
@ -75,22 +70,10 @@ VOID ClockUpdate(VOID)
|
||||||
/* Get the current number of ticks */
|
/* Get the current number of ticks */
|
||||||
DWORD CurrentTickCount = GetTickCount();
|
DWORD CurrentTickCount = GetTickCount();
|
||||||
|
|
||||||
#ifdef WORKING_TIMER
|
/* Get the current performance counter value */
|
||||||
if ((PitResolution <= 1000) && (RtcFrequency <= 1000))
|
/// DWORD_PTR oldmask = SetThreadAffinityMask(GetCurrentThread(), 0);
|
||||||
{
|
NtQueryPerformanceCounter(&Counter, NULL);
|
||||||
/* Calculate the approximate performance counter value instead */
|
/// SetThreadAffinityMask(GetCurrentThread(), oldmask);
|
||||||
Counter.QuadPart = StartPerfCount.QuadPart
|
|
||||||
+ ((CurrentTickCount - StartTickCount)
|
|
||||||
* Frequency.QuadPart) / 1000;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
/* Get the current performance counter value */
|
|
||||||
/// DWORD_PTR oldmask = SetThreadAffinityMask(GetCurrentThread(), 0);
|
|
||||||
NtQueryPerformanceCounter(&Counter, NULL);
|
|
||||||
/// SetThreadAffinityMask(GetCurrentThread(), oldmask);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Continue CPU emulation */
|
/* Continue CPU emulation */
|
||||||
for (i = 0; VdmRunning && CpuRunning && (i < STEPS_PER_CYCLE); i++)
|
for (i = 0; VdmRunning && CpuRunning && (i < STEPS_PER_CYCLE); i++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue