Author: hbelusca
Date: Sat May 16 19:15:25 2015
New Revision: 67780
URL:
http://svn.reactos.org/svn/reactos?rev=67780&view=rev
Log:
[NTVDM]: Reload the new PIT count as soon as we have finished to set it. Tested by V.
q;^D
Modified:
trunk/reactos/subsystems/mvdm/ntvdm/hardware/pit.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/hardware/pit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/hard…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/hardware/pit.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/hardware/pit.c [iso-8859-1] Sat May 16 19:15:25
2015
@@ -275,6 +275,9 @@
PitChannels[Channel].CountRegister =
WRITE_PIT_VALUE(PitChannels[Channel], PitChannels[Channel].CountRegister);
PitChannels[Channel].ReloadValue = PitChannels[Channel].CountRegister;
+
+ /* Reload now the new count */
+ PitChannels[Channel].CurrentValue = PitChannels[Channel].ReloadValue;
}
}