Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef ___ASM_SPARC_CACHEFLUSH_H
0003 #define ___ASM_SPARC_CACHEFLUSH_H
0004 
0005 /* flush addr - to allow use of self-modifying code */
0006 #define flushi(addr)    __asm__ __volatile__ ("flush %0" : : "r" (addr) : "memory")
0007 
0008 #if defined(__sparc__) && defined(__arch64__)
0009 #include <asm/cacheflush_64.h>
0010 #else
0011 #include <asm/cacheflush_32.h>
0012 #endif
0013 #endif