Use uncached memory so this has a chance of working on R4x00 DECstations.

My 5000/260 hung hard when a PMAG-D board was probed during boot.
This commit is contained in:
mhitch 2000-10-11 17:55:56 +00:00
parent 76589fafd4
commit 28c4cc2851
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: px.c,v 1.33 2000/06/29 07:51:07 mrg Exp $ */
/* $NetBSD: px.c,v 1.34 2000/10/11 17:55:56 mhitch Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
#endif
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.33 2000/06/29 07:51:07 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.34 2000/10/11 17:55:56 mhitch Exp $");
/*
* px.c: driver for the DEC TURBOchannel 2D and 3D accelerated framebuffers
@ -367,7 +367,7 @@ px_init(fi, slotbase, unit, console)
/* Align to 8KB. px_info struct gets the first 4KB */
bufpa = (bufpa + 8191) & ~8191;
pxi = (struct px_info *)MIPS_PHYS_TO_KSEG0(bufpa);
pxi = (struct px_info *)MIPS_PHYS_TO_KSEG1(bufpa);
px_unit[unit] = pxi;
bufpa += PXMAP_INFO_SIZE;
@ -396,7 +396,7 @@ px_init(fi, slotbase, unit, console)
*/
if (pxi->pxi_option) {
bufpa = MIPS_KSEG0_TO_PHYS(slotbase + PXG_SRAM_OFFSET);
pxi->pxi_rbuf = (int *)MIPS_PHYS_TO_KSEG0(bufpa);
pxi->pxi_rbuf = (int *)MIPS_PHYS_TO_KSEG1(bufpa);
pxi->pxi_rbuf_phys = bufpa;
pxi->pxi_rbuf_size = px_probe_sram(pxi);
}