Module Name: src
Committed By: macallan
Date: Wed Sep 30 19:46:27 UTC 2015
Modified Files:
src/sys/arch/sgimips/sgimips: console.c
Log Message:
don't MIPS_PHYS_TO_KSEG1() the hardware address for O2's serial ports
now serial console works again
To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/sgimips/sgimips/console.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/sgimips/sgimips/console.c
diff -u src/sys/arch/sgimips/sgimips/console.c:1.44 src/sys/arch/sgimips/sgimips/console.c:1.45
--- src/sys/arch/sgimips/sgimips/console.c:1.44 Wed Feb 18 16:47:59 2015
+++ src/sys/arch/sgimips/sgimips/console.c Wed Sep 30 19:46:27 2015
@@ -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 @@ mace_serial_init(const char *consdev)
/* 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);
}