summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/stand/kbd.c')
-rw-r--r--sys/arch/i386/stand/kbd.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/kbd.c b/sys/arch/i386/stand/kbd.c
index fccb32a20af..8a115f16016 100644
--- a/sys/arch/i386/stand/kbd.c
+++ b/sys/arch/i386/stand/kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kbd.c,v 1.4 1996/09/23 14:46:51 mickey Exp $ */
+/* $OpenBSD: kbd.c,v 1.5 1996/09/23 15:23:33 mickey Exp $ */
/* $NetBSD: kbd.c,v 1.3 1994/10/27 04:21:56 cgd Exp $ */
/*-
@@ -52,6 +52,7 @@
typedef unsigned char u_char;
+void wait(int n);
u_char inb();
#ifdef notdef
@@ -271,3 +272,13 @@ reset_cpu() {
wait(4000000);
/* NOTREACHED */
}
+
+void
+wait(n)
+ int n;
+{
+ int v;
+
+ while(n-- && (v = scankbd()) == 0);
+ if (v) kbdreset();
+}