Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/sgimips Use hit-flush ops in bus_dmamap_syn...



details:   https://anonhg.NetBSD.org/src/rev/2237ed8e81e6
branches:  trunk
changeset: 509719:2237ed8e81e6
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 11 04:46:22 2001 +0000

description:
Use hit-flush ops in bus_dmamap_sync().  From Rafal K. Boni.

diffstat:

 sys/arch/sgimips/sgimips/bus.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r 78f538226e34 -r 2237ed8e81e6 sys/arch/sgimips/sgimips/bus.c
--- a/sys/arch/sgimips/sgimips/bus.c    Fri May 11 04:42:41 2001 +0000
+++ b/sys/arch/sgimips/sgimips/bus.c    Fri May 11 04:46:22 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.c,v 1.6 2001/04/24 04:31:08 thorpej Exp $  */
+/*     $NetBSD: bus.c,v 1.7 2001/05/11 04:46:22 thorpej Exp $  */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -670,13 +670,13 @@
 
 #ifdef BUS_DMA_DEBUG
                printf("bus_dmamap_sync: flushing segment %d "
-                   "(0x%lx..0x%lx) ...", i, addr + offset,
-                   addr + offset + minlen - 1);
+                   "(0x%lx+%lx, 0x%lx+0x%lx) (olen = %ld)...", i,
+                   addr, offset, addr, offset + minlen - 1, len);
+#endif
+#if 0
+               MachFlushDCache(addr + offset, minlen);
 #endif
 #if 1
-               MachFlushDCache(addr + offset, minlen);
-#endif
-#if 0
                mips3_HitFlushDCache(map->dm_segs[i]._ds_vaddr + offset, len);
 #endif
 #if 0



Home | Main Index | Thread Index | Old Index