]> xenbits.xensource.com Git - seabios.git/commitdiff
ps2: Enable keyboard at end of PS2 port irq.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 12 Mar 2012 00:45:56 +0000 (20:45 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 12 Mar 2012 00:45:56 +0000 (20:45 -0400)
Looks like some old programs expect the keyboard irq to enable the
keyboard port at the end of the irq.  This behavior was seen on an
image of "Concurrent DOS".

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/ps2port.c

index 1f042999047ed818e7a5b458c0c03716b9b4cc0d..4b27b7ac3c91da7feda7cd3834bb7ec228d58428 100644 (file)
@@ -404,6 +404,9 @@ handle_09(void)
 
     process_key(v);
 
+    // Some old programs expect ISR to turn keyboard back on.
+    i8042_command(I8042_CMD_KBD_ENABLE, NULL);
+
 done:
     eoi_pic1();
 }