summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pccons.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-28 11:21:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-28 11:21:07 +0000
commita6168cdccfafc3cc7e6ef3fb17cb9abf2d3bcc28 (patch)
tree4e65e06d82da412d42bc59f3ac3f9b515b437e79 /sys/arch/i386/isa/pccons.c
parent8b3ad7a3abd765d3f79179aeeecdb5a442688dd0 (diff)
kill keyboard randomness; it causes random problems
Diffstat (limited to 'sys/arch/i386/isa/pccons.c')
-rw-r--r--sys/arch/i386/isa/pccons.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c
index 9982a60e5e3..2e1a377e748 100644
--- a/sys/arch/i386/isa/pccons.c
+++ b/sys/arch/i386/isa/pccons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccons.c,v 1.23 1996/08/27 07:32:04 deraadt Exp $ */
+/* $OpenBSD: pccons.c,v 1.24 1996/08/28 11:21:06 deraadt Exp $ */
/* $NetBSD: pccons.c,v 1.99.4.1 1996/06/04 20:03:53 cgd Exp $ */
/*-
@@ -532,6 +532,7 @@ pcopen(dev, flag, mode, p)
struct pc_softc *sc;
int unit = PCUNIT(dev);
struct tty *tp;
+ int s;
if (unit >= pc_cd.cd_ndevs)
return ENXIO;
@@ -539,11 +540,13 @@ pcopen(dev, flag, mode, p)
if (sc == 0)
return ENXIO;
+ s = spltty();
if (!sc->sc_tty) {
tp = sc->sc_tty = ttymalloc();
tty_attach(tp);
} else
tp = sc->sc_tty;
+ splx(s);
tp->t_oproc = pcstart;
tp->t_param = pcparam;
@@ -1584,10 +1587,6 @@ top:
KBD_DELAY;
dt = inb(KBDATAP);
-#if NRND > 0
- add_keyboard_randomness(dt);
-#endif
-
switch (dt) {
case KBR_ACK:
ack = 1;