summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/isa/pccons.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c
index 27facb21d80..ed72f01815b 100644
--- a/sys/arch/i386/isa/pccons.c
+++ b/sys/arch/i386/isa/pccons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccons.c,v 1.21 1996/07/19 23:00:08 dm Exp $ */
+/* $OpenBSD: pccons.c,v 1.22 1996/08/10 21:28:20 tholo Exp $ */
/* $NetBSD: pccons.c,v 1.99.4.1 1996/06/04 20:03:53 cgd Exp $ */
/*-
@@ -71,6 +71,11 @@
#include <i386/isa/isa_machdep.h>
#include <i386/isa/kbdreg.h>
+#include "rnd.h"
+#if NRND > 0
+#include <dev/rndvar.h>
+#endif
+
#define XFREE86_BUG_COMPAT
#ifndef BEEP_FREQ
@@ -1577,6 +1582,10 @@ top:
KBD_DELAY;
dt = inb(KBDATAP);
+#if NRND > 0
+ add_keyboard_randomness(dt);
+#endif
+
switch (dt) {
case KBR_ACK:
ack = 1;