cacheflush.h 373 B

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