aboutsummaryrefslogtreecommitdiff
path: root/hw/input
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2014-02-11 23:46:03 +0100
committerMichael S. Tsirkin <mst@redhat.com>2014-03-09 21:09:38 +0200
commitf1b7e0e498c03e5b4519eeea73b49aafe9d88618 (patch)
tree3d845a830aac057d742a9eb3c26a1cc87c3bf77d /hw/input
parent175f099b30d4736d23384a838b5f324961f67a1e (diff)
pckbd: return 'keyboard enabled' on read input port command
Bit 7 of Input Port is the keyboard inhibit switch. 0 means keyboard inhibited, while 1 means keyboard enabled. Incidentaly, this also fixes an error encountered while booting an Award BIOS: "Keyboard is locked out - Unlock the key". Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/input')
-rw-r--r--hw/input/pckbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c
index 655b8c5011..29af3d741f 100644
--- a/hw/input/pckbd.c
+++ b/hw/input/pckbd.c
@@ -281,7 +281,7 @@ static void kbd_write_command(void *opaque, hwaddr addr,
kbd_update_irq(s);
break;
case KBD_CCMD_READ_INPORT:
- kbd_queue(s, 0x00, 0);
+ kbd_queue(s, 0x80, 0);
break;
case KBD_CCMD_READ_OUTPORT:
kbd_queue(s, s->outport, 0);