Author: dgorbachev
Date: Sun Sep 25 16:02:14 2011
New Revision: 53853
URL:
http://svn.reactos.org/svn/reactos?rev=53853&view=rev
Log:
[NTOSKRNL]
Disable mouse when reading from keyboard port.
Modified:
trunk/reactos/ntoskrnl/kdbg/kdb_cli.c
trunk/reactos/ntoskrnl/kdbg/kdb_keyboard.c
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_cli.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_cli.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] Sun Sep 25 16:02:14 2011
@@ -3489,6 +3489,9 @@
*(KdpPromptString.Buffer + i));
}
+ if (!(KdbDebugState & KD_DEBUG_KDSERIAL))
+ KbdDisableMouse();
+
/* Loop the whole string */
for (i = 0; i < OutStringLength; i++)
{
@@ -3556,6 +3559,9 @@
KdPortPutByteEx(&SerialPortInfo, Response);
}
+ if (!(KdbDebugState & KD_DEBUG_KDSERIAL))
+ KbdEnableMouse();
+
/* Print a new line */
KdPortPutByteEx(&SerialPortInfo, '\r');
KdPortPutByteEx(&SerialPortInfo, '\n');
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_keyboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_keyboard…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_keyboard.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_keyboard.c [iso-8859-1] Sun Sep 25 16:02:14 2011
@@ -93,13 +93,11 @@
VOID KbdEnableMouse()
{
KbdSendCommandToMouse(MOU_ENAB);
- // kbd_write_command(KBD_ENABLE_MOUSE);
}
VOID KbdDisableMouse()
{
KbdSendCommandToMouse(MOU_DISAB);
- // kbd_write_command(KBD_DISABLE_MOUSE);
}
CHAR