mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +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
|
||||
|
||||
/*
|
||||
* Activate WORKING_TIMER when the PIT timing problem is fixed.
|
||||
*/
|
||||
// #define WORKING_TIMER
|
||||
|
||||
/* Processor speed */
|
||||
#define STEPS_PER_CYCLE 1024
|
||||
|
||||
|
@ -75,22 +70,10 @@ VOID ClockUpdate(VOID)
|
|||
/* Get the current number of ticks */
|
||||
DWORD CurrentTickCount = GetTickCount();
|
||||
|
||||
#ifdef WORKING_TIMER
|
||||
if ((PitResolution <= 1000) && (RtcFrequency <= 1000))
|
||||
{
|
||||
/* Calculate the approximate performance counter value instead */
|
||||
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);
|
||||
}
|
||||
/* Get the current performance counter value */
|
||||
/// DWORD_PTR oldmask = SetThreadAffinityMask(GetCurrentThread(), 0);
|
||||
NtQueryPerformanceCounter(&Counter, NULL);
|
||||
/// SetThreadAffinityMask(GetCurrentThread(), oldmask);
|
||||
|
||||
/* Continue CPU emulation */
|
||||
for (i = 0; VdmRunning && CpuRunning && (i < STEPS_PER_CYCLE); i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue