Force little-endian mode on hpc1, and attach zs on IP20.
This commit is contained in:
parent
6e2bbdfcc9
commit
52063657cc
|
@ -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 @@ const struct hpc_device {
|
|||
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 @@ hpc_attach(struct device *parent, struct device *self, void *aux)
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue