workaround for qemu writing the configuration byte on the AUX port pre-0.10.

This commit is contained in:
Ben Gras 2009-03-24 15:41:18 +00:00
parent d8d63f0e07
commit 46d28c6ffb

View file

@ -856,14 +856,7 @@ PRIVATE int kbc_read()
if(sys_inb(KEYBD, &byte) != OK) if(sys_inb(KEYBD, &byte) != OK)
printf("kbc_read: 2 sys_inb failed\n"); printf("kbc_read: 2 sys_inb failed\n");
if (st & KB_AUX_BYTE) if (st & KB_AUX_BYTE)
{ printf("kbc_read: aux byte 0x%x\n", byte);
#if DEBUG
printf(
"keyboard`kbc_read: ignoring byte (0x%x) from aux device.\n",
byte);
#endif
continue;
}
#if DEBUG #if DEBUG
printf("keyboard`kbc_read: returning byte 0x%x\n", printf("keyboard`kbc_read: returning byte 0x%x\n",
byte); byte);