Flush buffers before sending a command to keyboard controller.

It should fix 'unresponsive keyboard' bug.

svn path=/trunk/; revision=39491
This commit is contained in:
Dmitry Gorbachev 2009-02-08 16:07:22 +00:00
parent c7c7ca269b
commit 3d465cce58

View file

@ -80,6 +80,7 @@ i8042BasicDetect(
UCHAR Value = 0;
/* Don't enable keyboard and mouse interrupts, disable keyboard/mouse */
i8042Flush(DeviceExtension);
if (!i8042ChangeMode(DeviceExtension, CCB_KBD_INT_ENAB | CCB_MOUSE_INT_ENAB, CCB_KBD_DISAB | CCB_MOUSE_DISAB))
return STATUS_IO_DEVICE_ERROR;