patch-1.3.31 linux/drivers/char/keyboard.c

Next file: linux/drivers/char/mem.c
Previous file: linux/drivers/block/triton.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.30/linux/drivers/char/keyboard.c linux/drivers/char/keyboard.c
@@ -1186,6 +1186,11 @@
 	request_irq(KEYBOARD_IRQ, keyboard_interrupt, 0, "keyboard");
 	request_region(0x60,16,"kbd");
 #ifdef __alpha__
+	/* if there is an input byte left, eat it up: */
+	if (inb(0x64) & 0x01) {
+	    inb(0x60);
+	}
+
 	/* enable keyboard interrupts, PC/AT mode */
 	kb_wait();
 	outb(0x60,0x64);	/* write PS/2 Mode Register */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this