M7350/kernel/arch/sparc/include/asm/cacheflush.h

13 lines
334 B
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
#ifndef ___ASM_SPARC_CACHEFLUSH_H
#define ___ASM_SPARC_CACHEFLUSH_H
2024-09-09 08:57:42 +00:00
/* flush addr - to allow use of self-modifying code */
#define flushi(addr) __asm__ __volatile__ ("flush %0" : : "r" (addr) : "memory")
2024-09-09 08:52:07 +00:00
#if defined(__sparc__) && defined(__arch64__)
#include <asm/cacheflush_64.h>
#else
#include <asm/cacheflush_32.h>
#endif
#endif