diff options
| -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; |
