mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:25:40 +00:00
- Attempt to avoid interaction with kernel debugging over serial port.
svn path=/trunk/; revision=8246
This commit is contained in:
parent
d0a5ab9948
commit
d3753b2d2f
1 changed files with 10 additions and 0 deletions
|
@ -11,6 +11,12 @@
|
|||
#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
|
||||
*/
|
||||
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue