2008-07-17 21:55:51 -07:00
|
|
|
#ifndef ___ASM_SPARC_CACHEFLUSH_H
|
|
|
|
|
#define ___ASM_SPARC_CACHEFLUSH_H
|
2012-05-20 17:27:53 +02:00
|
|
|
|
|
|
|
|
/* flush addr - to allow use of self-modifying code */
|
|
|
|
|
#define flushi(addr) __asm__ __volatile__ ("flush %0" : : "r" (addr) : "memory")
|
|
|
|
|
|
2008-07-17 21:55:51 -07:00
|
|
|
#if defined(__sparc__) && defined(__arch64__)
|
2008-07-27 23:00:59 +02:00
|
|
|
#include <asm/cacheflush_64.h>
|
2008-07-17 21:55:51 -07:00
|
|
|
#else
|
2008-07-27 23:00:59 +02:00
|
|
|
#include <asm/cacheflush_32.h>
|
2008-07-17 21:55:51 -07:00
|
|
|
#endif
|
|
|
|
|
#endif
|