Sam Ravnborg | a439fe5 | 2008-07-27 23:00:59 +0200 | [diff] [blame] | 1 | #ifndef ___ASM_SPARC_CACHEFLUSH_H |
| 2 | #define ___ASM_SPARC_CACHEFLUSH_H |
Sam Ravnborg | 1edc178 | 2012-05-20 17:27:53 +0200 | [diff] [blame^] | 3 | |
| 4 | /* flush addr - to allow use of self-modifying code */ |
| 5 | #define flushi(addr) __asm__ __volatile__ ("flush %0" : : "r" (addr) : "memory") |
| 6 | |
Sam Ravnborg | a439fe5 | 2008-07-27 23:00:59 +0200 | [diff] [blame] | 7 | #if defined(__sparc__) && defined(__arch64__) |
| 8 | #include <asm/cacheflush_64.h> |
| 9 | #else |
| 10 | #include <asm/cacheflush_32.h> |
| 11 | #endif |
| 12 | #endif |