summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pcvt/pcvt_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/isa/pcvt/pcvt_drv.c')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_drv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_drv.c b/sys/arch/i386/isa/pcvt/pcvt_drv.c
index 0f71a01d6fd..9644eb909d9 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_drv.c
@@ -90,6 +90,10 @@
#define EXTERN /* allocate mem */
#include "pcvt_hdr.h" /* global include */
+#include "rnd.h"
+#if NRND
+#include <dev/rndvar.h>
+#endif
#ifdef NOTDEF
unsigned __debug = 0; /*0xffe */;
@@ -874,6 +878,9 @@ pcrint(void)
dt = inb(CONTROLLER_DATA); /* get it 8042 data */
+#if NRND
+ add_keyboard_randomness(dt);
+#endif
if (pcvt_kbd_count >= PCVT_KBD_FIFO_SZ) /* fifo overflow ? */
{
log (LOG_WARNING, "pcvt: keyboard buffer overflow\n");