1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

Do the cache invalidate sequence from the outermost to innermost, required

for correct operation.

Submitted by:	Michal Meloun <meloun@miracle.cz>
This commit is contained in:
Ian Lepore 2014-11-16 20:59:27 +00:00
parent f5b11228ad
commit 1c716437d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274603

View File

@ -1372,8 +1372,8 @@ _bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dmasync_op_t op)
len = (len -
(len & arm_dcache_align_mask)) +
arm_dcache_align;
cpu_dcache_inv_range(startv, len);
l2cache_inv_range(startv, startp, len);
cpu_dcache_inv_range(startv, len);
if (bpage->datavaddr != 0)
bcopy((void *)bpage->vaddr,
(void *)bpage->datavaddr,