summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-04-12 14:57:17 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-04-12 14:57:17 +0000
commit0fce254886c56855aa431a7a2dd8bcb69aa26e86 (patch)
treef851503aa862c0f9f2c60539e0cf3be42871ea14 /sys
parent23bd4054f38c41f92bdb576d7901e1070c214196 (diff)
Tighten check for consoleness by comparing comconsiot as well as comconsaddr.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/com_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/com_subr.c b/sys/dev/ic/com_subr.c
index ea6c15aa63e..b3a1cba0087 100644
--- a/sys/dev/ic/com_subr.c
+++ b/sys/dev/ic/com_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_subr.c,v 1.11 2007/10/22 14:11:44 fgsch Exp $ */
+/* $OpenBSD: com_subr.c,v 1.12 2008/04/12 14:57:16 kettenis Exp $ */
/*
* Copyright (c) 1997 - 1999, Jason Downs. All rights reserved.
@@ -150,7 +150,7 @@ com_attach_subr(sc)
bus_space_write_1(iot, ioh, com_ier, sc->sc_ier);
#ifdef COM_CONSOLE
- if (sc->sc_iobase == comconsaddr) {
+ if (sc->sc_iot == comconsiot && sc->sc_iobase == comconsaddr) {
comconsattached = 1;
delay(10000); /* wait for output to finish */
SET(sc->sc_hwflags, COM_HW_CONSOLE);