[NTVDM]
[reactos.git] / reactos / subsystems / ntvdm / hardware / pic.c
index 5c705ca..624c825 100644 (file)
@@ -85,6 +85,12 @@ static VOID PicWriteCommand(BYTE Port, BYTE Value)
             /* Otherwise, clear all of them */
             Pic->InServiceRegister = 0;
         }
+
+        if (MasterPic.IntRequestRegister || SlavePic.IntRequestRegister)
+        {
+            /* Signal the next IRQ */
+            EmulatorInterruptSignal();
+        }
     }
 }
 
@@ -154,7 +160,7 @@ static VOID PicWriteData(BYTE Port, BYTE Value)
     Pic->Initialization = FALSE;
 }
 
-static BYTE WINAPI PicReadPort(ULONG Port)
+static BYTE WINAPI PicReadPort(USHORT Port)
 {
     switch (Port)
     {
@@ -174,7 +180,7 @@ static BYTE WINAPI PicReadPort(ULONG Port)
     return 0;
 }
 
-static VOID WINAPI PicWritePort(ULONG Port, BYTE Data)
+static VOID WINAPI PicWritePort(USHORT Port, BYTE Data)
 {
     switch (Port)
     {