Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sgimips/hpc Force little-endian mode on hpc1, and a...
details: https://anonhg.NetBSD.org/src/rev/7e7fbdd281fe
branches: trunk
changeset: 556945:7e7fbdd281fe
user: sekiya <sekiya%NetBSD.org@localhost>
date: Tue Dec 30 23:45:25 2003 +0000
description:
Force little-endian mode on hpc1, and attach zs on IP20.
diffstat:
sys/arch/sgimips/hpc/hpc.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 28568f5a185d -r 7e7fbdd281fe sys/arch/sgimips/hpc/hpc.c
--- a/sys/arch/sgimips/hpc/hpc.c Tue Dec 30 23:40:20 2003 +0000
+++ b/sys/arch/sgimips/hpc/hpc.c Tue Dec 30 23:45:25 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpc.c,v 1.23 2003/12/29 06:33:57 sekiya Exp $ */
+/* $NetBSD: hpc.c,v 1.24 2003/12/30 23:45:25 sekiya Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpc.c,v 1.23 2003/12/29 06:33:57 sekiya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpc.c,v 1.24 2003/12/30 23:45:25 sekiya Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -66,6 +66,11 @@
29,
HPCDEV_IP22 | HPCDEV_IP24 },
+ { "zsc", /* serial 0/1 duart 1 */
+ 0x0d10, 0,
+ 5,
+ HPCDEV_IP20 },
+
{ "pckbc",
HPC_PBUS_CH6_DEVREGS + IOC_KB_REGS, 0,
28,
@@ -328,6 +333,11 @@
hpctype = 15;
else
hpctype = 1;
+
+ /* force big-endian mode */
+ *(u_int32_t *)MIPS_PHYS_TO_KSEG1(ga->ga_addr + HPC1_BIGENDIAN) =
+ hpctype & 0xe0;
+
}
printf(": SGI HPC%d%s\n", (hpctype == 3) ? 3 : 1,
Home |
Main Index |
Thread Index |
Old Index