diff options
Diffstat (limited to 'arch/m68k/include/asm/cacheflush_no.h')
-rw-r--r-- | arch/m68k/include/asm/cacheflush_no.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/m68k/include/asm/cacheflush_no.h b/arch/m68k/include/asm/cacheflush_no.h index 8ada4ffc98e5..f931e1829835 100644 --- a/arch/m68k/include/asm/cacheflush_no.h +++ b/arch/m68k/include/asm/cacheflush_no.h | |||
@@ -30,9 +30,13 @@ | |||
30 | #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ | 30 | #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ |
31 | memcpy(dst, src, len) | 31 | memcpy(dst, src, len) |
32 | 32 | ||
33 | #ifndef __flush_cache_all | 33 | void mcf_cache_push(void); |
34 | |||
34 | static inline void __flush_cache_all(void) | 35 | static inline void __flush_cache_all(void) |
35 | { | 36 | { |
37 | #ifdef CACHE_PUSH | ||
38 | mcf_cache_push(); | ||
39 | #endif | ||
36 | #ifdef CACHE_INVALIDATE | 40 | #ifdef CACHE_INVALIDATE |
37 | __asm__ __volatile__ ( | 41 | __asm__ __volatile__ ( |
38 | "movel %0, %%d0\n\t" | 42 | "movel %0, %%d0\n\t" |
@@ -41,6 +45,5 @@ static inline void __flush_cache_all(void) | |||
41 | : : "i" (CACHE_INVALIDATE) : "d0" ); | 45 | : : "i" (CACHE_INVALIDATE) : "d0" ); |
42 | #endif | 46 | #endif |
43 | } | 47 | } |
44 | #endif /* __flush_cache_all */ | ||
45 | 48 | ||
46 | #endif /* _M68KNOMMU_CACHEFLUSH_H */ | 49 | #endif /* _M68KNOMMU_CACHEFLUSH_H */ |