MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dcache_wb_poc

Function dcache_wb_poc

freebsd/arm/include/cpu-v6.h:585–598  ·  view source on GitHub ↗

* Write back D-cache to PoC * * Caches are written back from innermost to outermost as dirty cachelines * flow in this direction. In given range, no dirty cacheline should remain * in any cache after this operation finishes. */

Source from the content-addressed store, hash-verified

583 * in any cache after this operation finishes.
584 */
585static __inline void
586dcache_wb_poc(vm_offset_t va, vm_paddr_t pa, vm_size_t size)
587{
588 vm_offset_t eva = va + size;
589
590 dsb();
591 va &= ~cpuinfo.dcache_line_mask;
592 for ( ; va < eva; va += cpuinfo.dcache_line_size) {
593 _CP15_DCCMVAC(va);
594 }
595 dsb();
596
597 cpu_l2cache_wb_range(pa, size);
598}
599
600/* Write back and invalidate D-cache to PoC */
601static __inline void

Callers 4

dma_preread_safeFunction · 0.85
dma_dcache_syncFunction · 0.85
bus_dmamap_syncFunction · 0.85
cpu_flush_dcacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected