cacheflush.h 334 B

123456789101112
  1. #ifndef ___ASM_SPARC_CACHEFLUSH_H
  2. #define ___ASM_SPARC_CACHEFLUSH_H
  3. /* flush addr - to allow use of self-modifying code */
  4. #define flushi(addr) __asm__ __volatile__ ("flush %0" : : "r" (addr) : "memory")
  5. #if defined(__sparc__) && defined(__arch64__)
  6. #include <asm/cacheflush_64.h>
  7. #else
  8. #include <asm/cacheflush_32.h>
  9. #endif
  10. #endif