From: Filip Navara Date: Wed, 18 Feb 2004 16:00:56 +0000 (+0000) Subject: - Attempt to avoid interaction with kernel debugging over serial port. X-Git-Tag: backups/videoprt_pnp_14032004@12472~397 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=d3753b2d2f194144f40e0d49e959301fe4ea22f8 - Attempt to avoid interaction with kernel debugging over serial port. svn path=/trunk/; revision=8246 --- diff --git a/reactos/drivers/input/sermouse/sermouse.c b/reactos/drivers/input/sermouse/sermouse.c index 9f73ee80630..f1b64e189d5 100644 --- a/reactos/drivers/input/sermouse/sermouse.c +++ b/reactos/drivers/input/sermouse/sermouse.c @@ -11,6 +11,12 @@ #include #include +/* + * HAL:KdComPortInUse used to prevent detecting mouse on port + * that is occupied by kernel debugger. + */ +ULONG DECLSPEC_IMPORT KdComPortInUse; + /* * Compile time options */ @@ -568,6 +574,10 @@ InitializeMouse(ULONG Port, ULONG Irq, PDRIVER_OBJECT DriverObject) KAFFINITY Affinity; ULONG MouseType; + /* Don't detect mouse on port that is occupied by kernel debugger */ + if (KdComPortInUse == Port) + return FALSE; + /* Try to detect mouse on specified port */ MouseType = DetectMicrosoftMouse(Port);