Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/pmax/pmax Pullup 1.25 and 1.26 [tsutsui]:
details: https://anonhg.NetBSD.org/src/rev/7cd21cc9f43c
branches: netbsd-1-5
changeset: 490199:7cd21cc9f43c
user: tv <tv%NetBSD.org@localhost>
date: Mon Nov 13 19:14:51 2000 +0000
description:
Pullup 1.25 and 1.26 [tsutsui]:
Add some #ifdef MIPS3's to allow compiling a MIPS1 only configuration.
diffstat:
sys/arch/pmax/pmax/bus_dma.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 006fbdd19933 -r 7cd21cc9f43c sys/arch/pmax/pmax/bus_dma.c
--- a/sys/arch/pmax/pmax/bus_dma.c Mon Nov 13 19:10:30 2000 +0000
+++ b/sys/arch/pmax/pmax/bus_dma.c Mon Nov 13 19:14:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.20.4.2 2000/09/30 01:46:48 mhitch Exp $ */
+/* $NetBSD: bus_dma.c,v 1.20.4.3 2000/11/13 19:14:51 tv Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -499,9 +499,11 @@
minlen = len < map->dm_segs[i].ds_len - offset ?
len : map->dm_segs[i].ds_len - offset;
+#ifdef MIPS3
if (CPUISMIPS3)
addr = map->dm_segs[i]._ds_vaddr;
else
+#endif
addr = map->dm_segs[i].ds_addr;
#ifdef BUS_DMA_DEBUG
@@ -509,9 +511,12 @@
"(0x%lx..0x%lx) ...", i, addr + offset,
addr + offset + minlen - 1);
#endif
+#ifdef MIPS3
if (CPUISMIPS3)
MachHitFlushDCache(addr + offset, minlen);
- else {
+ else
+#endif
+ {
/*
* We can't have a TLB miss; use KSEG0.
*/
Home |
Main Index |
Thread Index |
Old Index