Fix my previous (untested) commit. The probe routine now appears to work

again.

Something needs to be done about this in 2.2, since the code there doesn't
even compile anymore since the syscons/kbdio/psm merge into 2.2.
This commit is contained in:
Peter Wemm 1996-11-24 08:06:01 +00:00
parent c23a77005a
commit 34429f3d2d

View file

@ -42,7 +42,7 @@
*
* This grody hack brought to you by Bill Paul (wpaul@ctr.columbia.edu)
*
* $Id: probe_keyboard.c,v 1.7 1996/09/26 20:52:13 pst Exp $
* $Id: probe_keyboard.c,v 1.8 1996/11/23 07:38:24 peter Exp $
*/
#ifdef PROBE_KEYBOARD
@ -96,7 +96,7 @@ gotres:
}
gotack:
delay1ms();
while ((inb(IO_KBD + KBD_STATUS_PORT) & KBDS_CONTROLLER_BUSY) == 0)
while ((inb(IO_KBD + KBD_STATUS_PORT) & KBDS_KBD_BUFFER_FULL) == 0)
delay1ms();
delay1ms();
#ifdef DEBUG