patch-2.2.8 linux/arch/ppc/boot/kbd.c
Next file: linux/arch/ppc/boot/misc.c
Previous file: linux/arch/ppc/boot/head.S
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
Thu Apr 29 12:39:01 1999
-  Orig file: 
v2.2.7/linux/arch/ppc/boot/kbd.c
-  Orig date: 
Tue Mar 23 14:35:46 1999
diff -u --recursive --new-file v2.2.7/linux/arch/ppc/boot/kbd.c linux/arch/ppc/boot/kbd.c
@@ -127,6 +127,11 @@
 	unsigned char c;
 	int i;
 
+	/* flush input queue */
+	while ((inb(KBSTATP) & KBINRDY))
+	{
+		(void)inb(KBDATAP);
+	}
 	/* Send self-test */
 	while (inb(KBSTATP) & KBOUTRDY) ;
 	outb(KBSTATP,0xAA);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)