Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp700/dev Fix console attach.



details:   https://anonhg.NetBSD.org/src/rev/4664bd42e74a
branches:  trunk
changeset: 752747:4664bd42e74a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Mar 05 18:41:29 2010 +0000

description:
Fix console attach.

diffstat:

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

diffs (21 lines):

diff -r 08ec8fa701a7 -r 4664bd42e74a sys/arch/hp700/dev/com_ssio.c
--- a/sys/arch/hp700/dev/com_ssio.c     Fri Mar 05 18:35:01 2010 +0000
+++ b/sys/arch/hp700/dev/com_ssio.c     Fri Mar 05 18:41:29 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com_ssio.c,v 1.1 2009/05/28 08:41:29 skrll Exp $       */
+/*     $NetBSD: com_ssio.c,v 1.2 2010/03/05 18:41:29 skrll Exp $       */
 
 /*     $OpenBSD: com_ssio.c,v 1.2 2007/06/24 16:28:39 kettenis Exp $   */
 
@@ -85,9 +85,10 @@
                return;
        }
 
+        /* Test if this is the console. */
        pagezero_cookie = hp700_pagezero_map();
        if (PAGE0->mem_cons.pz_class == PCL_DUPLEX &&
-           PAGE0->mem_cons.pz_hpa == (struct iomod *)iobase) {
+           PAGE0->mem_cons.pz_hpa == (struct iomod *)ioh) {
                bus_space_unmap(iot, ioh, COM_NPORTS);
                if (comcnattach(iot, iobase, B9600, COM_SSIO_FREQ,
                    COM_TYPE_NORMAL, 



Home | Main Index | Thread Index | Old Index