diff options
| author | Mark Murray <markm@FreeBSD.org> | 1995-11-12 17:02:45 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 1995-11-12 17:02:45 +0000 |
| commit | a07ffb0cda32561318c6df1c66c2af635a622a31 (patch) | |
| tree | 8c810f5e24a4600a1911c1857fefbf7c28e64a49 | |
| parent | 58cf3c925d60a19879aaaf4800e86921fd91a53b (diff) | |
Notes
| -rw-r--r-- | sys/i386/isa/pcvt/pcvt_hdr.h | 4 | ||||
| -rw-r--r-- | sys/i386/isa/pcvt/pcvt_kbd.c | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_hdr.h b/sys/i386/isa/pcvt/pcvt_hdr.h index 2862d38b1615..0cd51d6192c4 100644 --- a/sys/i386/isa/pcvt/pcvt_hdr.h +++ b/sys/i386/isa/pcvt/pcvt_hdr.h @@ -81,7 +81,9 @@ #include <sys/syslog.h> #include <sys/malloc.h> #include <sys/time.h> - +#if PCVT_FREEBSD > 210 +#include <machine/random.h> +#endif /* PCVT_FREEBSD > 210 */ #else /* ! PCVT_FREEBSD >= 200 */ #include "param.h" diff --git a/sys/i386/isa/pcvt/pcvt_kbd.c b/sys/i386/isa/pcvt/pcvt_kbd.c index b0caf49b2696..eda2d0877175 100644 --- a/sys/i386/isa/pcvt/pcvt_kbd.c +++ b/sys/i386/isa/pcvt/pcvt_kbd.c @@ -981,6 +981,11 @@ loop: if (pcvt_kbd_raw) { keybuf[0] = dt; + +#if PCVT_FREEBSD > 210 + add_keyboard_randomness(dt); +#endif /* PCVT_FREEBSD > 210 */ + #if !PCVT_USL_VT_COMPAT if ((dt & 0x80) == 0) /* key make */ @@ -1323,6 +1328,10 @@ no_mouse_event: /* got a normal scan key */ regular: +#if PCVT_FREEBSD > 210 + add_keyboard_randomness(dt); +#endif /* PCVT_FREEBSD > 210 */ + #if PCVT_SCANSET == 1 kbd_status.breakseen = dt & 0x80 ? 1 : 0; dt &= 0x7f; |
