Module Name: src
Committed By: skrll
Date: Fri Mar 5 18:41:29 UTC 2010
Modified Files:
src/sys/arch/hp700/dev: com_ssio.c
Log Message:
Fix console attach.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/hp700/dev/com_ssio.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/hp700/dev/com_ssio.c
diff -u src/sys/arch/hp700/dev/com_ssio.c:1.1 src/sys/arch/hp700/dev/com_ssio.c:1.2
--- src/sys/arch/hp700/dev/com_ssio.c:1.1 Thu May 28 08:41:29 2009
+++ src/sys/arch/hp700/dev/com_ssio.c Fri Mar 5 18:41:29 2010
@@ -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,