Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Call the parent bus dvmamap_unload func...
details: https://anonhg.NetBSD.org/src/rev/e53549682edd
branches: trunk
changeset: 495583:e53549682edd
user: eeh <eeh%NetBSD.org@localhost>
date: Tue Aug 01 00:22:41 2000 +0000
description:
Call the parent bus dvmamap_unload function to clear the cache rather
than do it ourselves.
diffstat:
sys/arch/sparc64/dev/iommu.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 010f9546aa8c -r e53549682edd sys/arch/sparc64/dev/iommu.c
--- a/sys/arch/sparc64/dev/iommu.c Mon Jul 31 23:40:02 2000 +0000
+++ b/sys/arch/sparc64/dev/iommu.c Tue Aug 01 00:22:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iommu.c,v 1.22 2000/07/07 13:10:34 mrg Exp $ */
+/* $NetBSD: iommu.c,v 1.23 2000/08/01 00:22:41 eeh Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@@ -584,6 +584,9 @@
sgsize = round_page(map->dm_segs[0].ds_len +
((int)map->dm_segs[0].ds_addr & PGOFSET));
+ /* Flush the caches */
+ bus_dmamap_unload(t->_parent, map);
+
/* Mark the mappings as invalid. */
map->dm_mapsize = 0;
map->dm_nsegs = 0;
@@ -593,7 +596,6 @@
splx(s);
if (error != 0)
printf("warning: %qd of DVMA space lost\n", (long long)sgsize);
- cache_flush((caddr_t)(u_long)dvmaddr, (u_int)sgsize);
}
Home |
Main Index |
Thread Index |
Old Index