FreeBSD/sys/sparc64/sparc64/spitfire.c
/*
 * Flush all lines from the level 1 caches.
 */
Flush all lines from the level 1 caches.
Flush all lines from the level 1 caches .
void
spitfire_cache_flush(void)
{
	u_long addr;
	for (addr = 0; addr < PCPU_GET(cache.dc_size);
	    addr += PCPU_GET(cache.dc_linesize))
		stxa_sync(addr, ASI_DCACHE_TAG, 0);
	for (addr = 0; addr < PCPU_GET(cache.ic_size);
	    addr += PCPU_GET(cache.ic_linesize))
		stxa_sync(addr, ASI_ICACHE_TAG, 0);
}
void spitfire_cache_flush ( void ) { u_long addr ; for ( addr = 0 ; addr < PCPU_GET ( cache . dc_size ) ; addr += PCPU_GET ( cache . dc_linesize ) ) stxa_sync ( addr , ASI_DCACHE_TAG , 0 ) ; for ( addr = 0 ; addr < PCPU_GET ( cache . ic_size ) ; addr += PCPU_GET ( cache . ic_linesize ) ) stxa_sync ( addr , ASI_ICACHE_TAG , 0 ) ; }
Flush all lines from the level 1 caches.
Flush all lines from the level 1 caches .