svn path=/trunk/; revision=8246
#include <ddk/ntddk.h>
#include <ddk/ntddmou.h>
+/*
+ * HAL:KdComPortInUse used to prevent detecting mouse on port
+ * that is occupied by kernel debugger.
+ */
+ULONG DECLSPEC_IMPORT KdComPortInUse;
+
/*
* Compile time options
*/
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);