Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/dev Actually check that the configured consol...



details:   https://anonhg.NetBSD.org/src/rev/b5dc7b5f7ed2
branches:  trunk
changeset: 762312:b5dc7b5f7ed2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Feb 19 05:36:49 2011 +0000

description:
Actually check that the configured console device is a wsdisplay.

diffstat:

 sys/arch/hp300/dev/hil_intio.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 6f8ca951e9eb -r b5dc7b5f7ed2 sys/arch/hp300/dev/hil_intio.c
--- a/sys/arch/hp300/dev/hil_intio.c    Sat Feb 19 05:34:59 2011 +0000
+++ b/sys/arch/hp300/dev/hil_intio.c    Sat Feb 19 05:36:49 2011 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index