Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Whe making a mapping "coherent", clear *A...
details: https://anonhg.NetBSD.org/src/rev/15e2edf111d4
branches: trunk
changeset: 535314:15e2edf111d4
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Aug 14 19:21:50 2002 +0000
description:
Whe making a mapping "coherent", clear *ALL* the cache 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 5d02cb5ba24f -r 15e2edf111d4 sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c Wed Aug 14 18:50:48 2002 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c Wed Aug 14 19:21:50 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.15 2002/07/31 17:34:23 thorpej Exp $ */
+/* $NetBSD: bus_dma.c,v 1.16 2002/08/14 19:21:50 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -688,7 +688,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