Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/arm/arm32 Pull up revision 1.16 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/e6dca558fd0a
branches:  netbsd-1-6
changeset: 529662:e6dca558fd0a
user:      he <he%NetBSD.org@localhost>
date:      Sat Dec 07 19:33:41 2002 +0000

description:
Pull up revision 1.16 (requested by thorpej in ticket #678):
  When making a mapping ``coherent'', clear *all* the cacche
  bits, not just L2_B and L2_C.

diffstat:

 sys/arch/arm/arm32/bus_dma.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7f858876874a -r e6dca558fd0a sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Sat Dec 07 19:25:18 2002 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Sat Dec 07 19:33:41 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.11.4.1 2002/12/07 19:23:21 he Exp $      */
+/*     $NetBSD: bus_dma.c,v 1.11.4.2 2002/12/07 19:33:41 he Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -665,7 +665,7 @@
                                cpu_dcache_wbinv_range(va, NBPG);
                                cpu_drain_writebuf();
                                ptep = vtopte(va);
-                               *ptep &= ~(L2_B | L2_C);
+                               *ptep &= ~pte_l2_s_cache_mask;
                                tlb_flush();
                        }
 #ifdef DEBUG_DMA



Home | Main Index | Thread Index | Old Index