summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-02-19 00:03:31 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-02-19 00:03:31 +0000
commitf48793694759ad83f9e10acd5aa6f410e3922f34 (patch)
tree4c0aeb85e150ea1ec6536c2973951b3bc48cc0a3 /sys/dev
parentfee41e58ef5803044710197e7e0c155c705e746a (diff)
Leaving console polling mode works now, and workaround boot -a slow response
glitch.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hil/hil.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/hil/hil.c b/sys/dev/hil/hil.c
index 43626d14bf4..7c43941cace 100644
--- a/sys/dev/hil/hil.c
+++ b/sys/dev/hil/hil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hil.c,v 1.5 2003/02/18 02:40:51 miod Exp $ */
+/* $OpenBSD: hil.c,v 1.6 2003/02/19 00:03:30 miod Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -302,6 +302,9 @@ hil_intr(void *v)
struct hil_softc *sc = v;
u_int8_t c, stat;
+ if (cold)
+ return (0);
+
stat = bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT);
c = bus_space_read_1(sc->sc_bst, sc->sc_bsh,
HILP_DATA); /* clears interrupt */
@@ -627,10 +630,8 @@ pollon(struct hil_softc *sc)
void
hil_set_poll(struct hil_softc *sc, int on)
{
- if (on)
- pollon(sc);
- else
- polloff(sc);
+ /* Always work in auto polled mode... */
+ pollon(sc);
}
int