Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sgimips/sgimips don't MIPS_PHYS_TO_KSEG1() the har...



details:   https://anonhg.NetBSD.org/src/rev/4041d2b1ad55
branches:  trunk
changeset: 340781:4041d2b1ad55
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Sep 30 19:46:27 2015 +0000

description:
don't  MIPS_PHYS_TO_KSEG1() the hardware address for O2's serial ports
now serial console works again

diffstat:

 sys/arch/sgimips/sgimips/console.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1c67fdd76a18 -r 4041d2b1ad55 sys/arch/sgimips/sgimips/console.c
--- a/sys/arch/sgimips/sgimips/console.c        Wed Sep 30 19:44:58 2015 +0000
+++ b/sys/arch/sgimips/sgimips/console.c        Wed Sep 30 19:46:27 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: console.c,v 1.44 2015/02/18 16:47:59 macallan Exp $    */
+/*     $NetBSD: console.c,v 1.45 2015/09/30 19:46:27 macallan Exp $    */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: console.c,v 1.44 2015/02/18 16:47:59 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: console.c,v 1.45 2015/09/30 19:46:27 macallan Exp $");
 
 #include "opt_kgdb.h"
 
@@ -227,7 +227,7 @@
 
                /* XXX: hardcoded MACE iotag */
                mace_init_bus();
-               if (comcnattach(mace_isa_memt, MIPS_PHYS_TO_KSEG1(MACE_BASE + base),
+               if (comcnattach(mace_isa_memt, MACE_BASE + base,
                    speed, COM_FREQ, COM_TYPE_NORMAL, comcnmode) == 0)
                        return (1);
        }



Home | Main Index | Thread Index | Old Index