Module Name: src
Committed By: tsutsui
Date: Sat Feb 19 05:36:50 UTC 2011
Modified Files:
src/sys/arch/hp300/dev: hil_intio.c
Log Message:
Actually check that the configured console device is a wsdisplay.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/hp300/dev/hil_intio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hp300/dev/hil_intio.c
diff -u src/sys/arch/hp300/dev/hil_intio.c:1.2 src/sys/arch/hp300/dev/hil_intio.c:1.3
--- src/sys/arch/hp300/dev/hil_intio.c:1.2 Sat Feb 19 05:34:59 2011
+++ src/sys/arch/hp300/dev/hil_intio.c Sat Feb 19 05:36:49 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hil_intio.c,v 1.2 2011/02/19 05:34:59 tsutsui Exp $ */
+/* $NetBSD: hil_intio.c,v 1.3 2011/02/19 05:36:49 tsutsui Exp $ */
/* $OpenBSD: hil_intio.c,v 1.8 2007/01/06 20:10:57 miod Exp $ */
/*
@@ -88,7 +88,8 @@
/*
* Check that the configured console device is a wsdisplay.
*/
- hil_is_console = 1;
+ if (major(cn_tab->cn_dev) != devsw_name2chr("wsdisplay", NULL, 0))
+ hil_is_console = 0;
hil_attach(sc, &hil_is_console);
intr_establish(hil_intr, sc, ia->ia_ipl, IPL_TTY);