Fixed int 10 problems
[reactos.git] / reactos / ntoskrnl / ke / i386 / bios.c
index 460567c..165096d 100644 (file)
@@ -74,12 +74,25 @@ Ke386CallBios(UCHAR Int, PKV86M_REGISTERS Regs)
   Regs->Flags = KV86M_EMULATE_CLI_STI | KV86M_ALLOW_IO_PORT_ACCESS;
   Regs->Vif = 1;
   Regs->PStatus = &Status;
+
+  WRITE_PORT_UCHAR((PUCHAR)0xea, 0);
   
   /*
    * Execute the BIOS interrupt
    */
   Ki386RetToV86Mode(Regs, &ORegs);
 
+  WRITE_PORT_UCHAR((PUCHAR)0xea, 1);
+
+  if (!NT_SUCCESS(Status))
+    {
+      DPRINT1("Ke386CallBios() failed (Status %x)\n", Status);
+    }
+  else
+    {
+      DPRINT1("Ke386CallBios succeeded\n");
+    }
+
   /*
    * Copy the return values back to the caller
    */