https://git.reactos.org/?p=reactos.git;a=commitdiff;h=76c20454341345baca657f...
commit 76c20454341345baca657fc426aca3c974aa86f0 Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Tue Jan 30 20:50:05 2018 +0100 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Mon Feb 5 11:49:12 2018 +0100
[FREELDR] Reduce the timeout during serial mouse detection. CORE-14280 --- boot/freeldr/freeldr/arch/i386/machpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/boot/freeldr/freeldr/arch/i386/machpc.c b/boot/freeldr/freeldr/arch/i386/machpc.c index 94b295ad03..64b6a43a86 100644 --- a/boot/freeldr/freeldr/arch/i386/machpc.c +++ b/boot/freeldr/freeldr/arch/i386/machpc.c @@ -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;