diff options
author | Michal Simek <monstr@monstr.eu> | 2009-10-15 17:18:13 +0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-12-14 10:45:00 +0300 |
commit | a1f55113ca2130f775eeebe799a401619bfd0295 (patch) | |
tree | 53e676e30e6a0b3e7dc235c709865bdb337f1d84 /arch/microblaze/include/asm/cacheflush.h | |
parent | 6a8dfe1cac5c591aecf88b38b8f4b206ee636761 (diff) | |
download | linux-a1f55113ca2130f775eeebe799a401619bfd0295.tar.xz |
microblaze: Move cache macro from cache.h to cacheflush.h
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/cacheflush.h')
-rw-r--r-- | arch/microblaze/include/asm/cacheflush.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/cacheflush.h b/arch/microblaze/include/asm/cacheflush.h index 088076e657b3..1f04b9111454 100644 --- a/arch/microblaze/include/asm/cacheflush.h +++ b/arch/microblaze/include/asm/cacheflush.h @@ -65,6 +65,23 @@ #define flush_cache_vmap(start, end) do { } while (0) #define flush_cache_vunmap(start, end) do { } while (0) + +void _enable_icache(void); +void _disable_icache(void); +void _invalidate_icache(unsigned int addr); + +#define __enable_icache() _enable_icache() +#define __disable_icache() _disable_icache() +#define __invalidate_icache(addr) _invalidate_icache(addr) + +void _enable_dcache(void); +void _disable_dcache(void); +void _invalidate_dcache(unsigned int addr); + +#define __enable_dcache() _enable_dcache() +#define __disable_dcache() _disable_dcache() +#define __invalidate_dcache(addr) _invalidate_dcache(addr) + struct page; struct mm_struct; struct vm_area_struct; |