diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-08-10 21:28:21 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-08-10 21:28:21 +0000 |
commit | ea9e6cbecb74d8f6bf72bfaa86b1619b5bad41c4 (patch) | |
tree | a8826eaf3db3bd37c142327747c4afe02fbcd40c | |
parent | 0eca7e1604e5c4da99ea5364faf472090e04f3a5 (diff) |
Support entropy generation for keyboard generation; already done for PCVT
-rw-r--r-- | sys/arch/i386/isa/pccons.c | 11 |
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; |