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/sparc64/dev pullup 1.23 (approved by thorpej):



details:   https://anonhg.NetBSD.org/src/rev/c5207a11d34c
branches:  netbsd-1-5
changeset: 488931:c5207a11d34c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Aug 07 00:57:26 2000 +0000

description:
pullup 1.23 (approved by thorpej):
>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 d20ded2c0b98 -r c5207a11d34c sys/arch/sparc64/dev/iommu.c
--- a/sys/arch/sparc64/dev/iommu.c      Mon Aug 07 00:38:25 2000 +0000
+++ b/sys/arch/sparc64/dev/iommu.c      Mon Aug 07 00:57:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iommu.c,v 1.15.2.1 2000/07/18 16:23:19 mrg Exp $       */
+/*     $NetBSD: iommu.c,v 1.15.2.2 2000/08/07 00:57:26 mrg 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