From 90ce89f8953da0e89c311aa34116b59aac1c6c5e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 11 Mar 2012 20:45:56 -0400 Subject: [PATCH] ps2: Enable keyboard at end of PS2 port irq. 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 --- src/ps2port.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ps2port.c b/src/ps2port.c index 1f04299..4b27b7a 100644 --- a/src/ps2port.c +++ b/src/ps2port.c @@ -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(); } -- 2.39.5