summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1996-09-26 20:52:13 +0000
committerPaul Traina <pst@FreeBSD.org>1996-09-26 20:52:13 +0000
commitb3f3fea5fd64b36ae3b7e09152d493688aceb605 (patch)
tree40883235d4243a3d0a4f65487d15dcea15970333
parentd49839662d517d6eb5b4901504014ac46ce6341d (diff)
Notes
-rw-r--r--sys/i386/boot/biosboot/probe_keyboard.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/i386/boot/biosboot/probe_keyboard.c b/sys/i386/boot/biosboot/probe_keyboard.c
index 2a353d419947..036df6a5fba7 100644
--- a/sys/i386/boot/biosboot/probe_keyboard.c
+++ b/sys/i386/boot/biosboot/probe_keyboard.c
@@ -42,7 +42,7 @@
*
* This grody hack brought to you by Bill Paul (wpaul@ctr.columbia.edu)
*
- * $Id: probe_keyboard.c,v 1.5 1995/04/20 23:15:10 joerg Exp $
+ * $Id: probe_keyboard.c,v 1.6 1996/03/08 06:29:07 bde Exp $
*/
#ifdef PROBE_KEYBOARD
@@ -75,7 +75,7 @@ probe_keyboard(void)
delay1ms();
val = inb(KB_DATA);
if (val == KB_ACK || val == KB_ECHO)
- goto gotres;
+ goto gotack;
if (val == KB_RESEND)
break;
}
@@ -85,12 +85,9 @@ gotres:
printf("gotres\n");
#endif
if (!retries) {
- if (val == KB_RESEND) {
#ifdef DEBUG
- printf("gave up\n");
+ printf("gave up\n");
#endif
- return(0);
- }
return(1);
}
gotack: