[FREELDR] Reduce the timeout during serial mouse detection. CORE-14280 351/head
authorThomas Faber <thomas.faber@reactos.org>
Tue, 30 Jan 2018 19:50:05 +0000 (20:50 +0100)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 5 Feb 2018 10:49:12 +0000 (11:49 +0100)
boot/freeldr/freeldr/arch/i386/machpc.c

index 94b295a..64b6a43 100644 (file)
@@ -340,12 +340,12 @@ DetectSerialMouse(PUCHAR Port)
     StallExecutionProcessor(10000);
 
     /* Read first four bytes, which contains Microsoft Mouse signs */
-    TimeOut = 200;
+    TimeOut = 20;
     for (i = 0; i < 4; i++)
     {
         while ((READ_PORT_UCHAR(Port + 5) & 1) == 0)
         {
-            StallExecutionProcessor(1000);
+            StallExecutionProcessor(100);
             --TimeOut;
             if (TimeOut == 0)
                 return MOUSE_TYPE_NONE;