/* * Some ColdFire parts implement separate instruction and data caches, * on those we should just flush the appropriate cache. If we don't need * to do any specific flushing then this will be optimized away.
*/ staticinlinevoid __flush_icache_all(void)
{ #ifdef CACHE_INVALIDATEI
__asm__ __volatile__ ( "movec %0, %%CACR\n\t" "nop\n\t"
: : "r" (CACHE_INVALIDATEI) ); #endif
}
/* * Push cache entries at supplied address. We want to write back any dirty * data and then invalidate the cache lines associated with this address.
*/ staticinlinevoid cache_push(unsignedlong paddr, int len)
{
__flush_cache_all();
}
/* * Clear cache entries at supplied address (that is don't write back any * dirty data).
*/ staticinlinevoid cache_clear(unsignedlong paddr, int len)
{
__clear_cache_all();
}
#include <asm-generic/cacheflush.h>
#endif/* _M68KNOMMU_CACHEFLUSH_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.