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