Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/stand/common Fix a botch on switching from ap...



details:   https://anonhg.NetBSD.org/src/rev/add6aea0784a
branches:  trunk
changeset: 328625:add6aea0784a
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Apr 10 18:10:09 2014 +0000

description:
Fix a botch on switching from apci (and dca) to MI com(4) 10 years ago.

I.e. fix apci device address per FRODO_BASE macro change
in frodoreg.h rev 1.2.  Now bootloader works with serial console
on HP425e (which has only com at frodo).

Thanks to miod@openbsd for providing his 425e.

diffstat:

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

diffs (19 lines):

diff -r a1727b47da48 -r add6aea0784a sys/arch/hp300/stand/common/apci.c
--- a/sys/arch/hp300/stand/common/apci.c        Thu Apr 10 17:11:15 2014 +0000
+++ b/sys/arch/hp300/stand/common/apci.c        Thu Apr 10 18:10:09 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apci.c,v 1.11 2011/02/08 20:20:14 rmind Exp $  */
+/*     $NetBSD: apci.c,v 1.12 2014/04/10 18:10:09 tsutsui Exp $        */
 
 /*-
  * Copyright (c) 1997, 1999 The NetBSD Foundation, Inc.
@@ -85,7 +85,8 @@
 apciprobe(struct consdev *cp)
 {
 
-       apcicnaddr = (void *)IIOV(FRODO_BASE + FRODO_APCI_OFFSET(1));
+       apcicnaddr =
+           (void *)IIOV(INTIOBASE + FRODO_BASE + FRODO_APCI_OFFSET(1));
 
        cp->cn_pri = CN_DEAD;
 



Home | Main Index | Thread Index | Old Index