All of lore.kernel.org
 help / color / mirror / Atom feed
* the late arch/sparc64/mm/init.c:__flush_cache_all
@ 2004-01-28 20:42 Ed L Cashin
  2004-01-28 21:46 ` David S. Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ed L Cashin @ 2004-01-28 20:42 UTC (permalink / raw)
  To: sparclinux

Hi.  I'm trying to find out which function to use to flush or disable
the ultrasparc's dcache, icache, and ecache.  On my way, I discovered
the __flush_cache_all function in arch/sparc64/mm/init.c.  It is
absent from the current kernel, but it was present a few months ago.

void __flush_cache_all(void)
{
	/* Cheetah should be fine here too. */
	if (tlb_type = spitfire) {
		unsigned long va;

		flushw_all();
		for (va =  0; va < (PAGE_SIZE << 1); va += 32)
			spitfire_put_icache_tag(va, 0x0);
		__asm__ __volatile__("flush %g6");
	}
}

My first question is why the function was removed.  With Seth Arnold's
help, I found the patch at bkbits.net that removes __flush_cache_all,
but the only clue is the subject header, "[SPARC64]: vmap/vunmap cache
flushing need not do anything."  I don't really understand why the
function was removed.

Can use flushw_all and flush g6 to clear the dcache, icache, and
ecache?

Also, and less important---in __flush_cache_all's inline asm, I
expected the percent sign to be escaped, as in the other init.c
functions.  Why is there only one percent sign?

-- 
--Ed L Cashin            |   PGP public key:
  ecashin@uga.edu        |   http://noserose.net/e/pgp/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-02 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-28 20:42 the late arch/sparc64/mm/init.c:__flush_cache_all Ed L Cashin
2004-01-28 21:46 ` David S. Miller
2004-02-02 18:51 ` Ed L Cashin
2004-02-02 19:02 ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.