Author: aandrejevic
Date: Sat May 16 20:06:28 2015
New Revision: 67783
URL: http://svn.reactos.org/svn/reactos?rev=67783&view=rev
Log:
[NTVDM]
Drivers that have no I/O status routine should be treated as "ready".
Modified:
trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c [iso-8859-1] Sat May 16 20:06:28 2015
@@ -944,7 +944,7 @@
{
/* Device*/
- if (Node->InputStatusRoutine && Node->InputStatusRoutine(Node))
+ if (!Node->InputStatusRoutine || Node->InputStatusRoutine(Node))
{
/* Set the length to 0xFF to mark that it's ready */
*Length = 0xFF;
@@ -982,7 +982,7 @@
{
/* Device*/
- if (Node->OutputStatusRoutine && Node->OutputStatusRoutine(Node))
+ if (!Node->OutputStatusRoutine || Node->OutputStatusRoutine(Node))
{
/* Set the length to 0xFF to mark that it's ready */
*Length = 0xFF;
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;
}
}