From 28c4cc2851fa0854dd75da268a248e59356626cb Mon Sep 17 00:00:00 2001 From: mhitch Date: Wed, 11 Oct 2000 17:55:56 +0000 Subject: [PATCH] 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. --- sys/arch/pmax/dev/px.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/pmax/dev/px.c b/sys/arch/pmax/dev/px.c index 5eef62bb342f..30c5b94f502f 100644 --- a/sys/arch/pmax/dev/px.c +++ b/sys/arch/pmax/dev/px.c @@ -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 -__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); }