--- cacheflush.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+) --- linux-m68k-2.6.8.1+uc0/include/asm-m68k/cacheflush.h 2004-06-21 20:20:00.000000000 +0200 +++ uClinux-amiga-2.6.8.1/include/asm-m68k/cacheflush.h 2004-06-26 17:17:49.000000000 +0200 @@ -1,6 +1,7 @@ #ifndef _M68K_CACHEFLUSH_H #define _M68K_CACHEFLUSH_H +#include #include /* @@ -7,6 +7,8 @@ * Cache handling functions */ +#ifdef CONFIG_MMU /* FIXME */ + #define flush_icache() \ ({ \ if (CPU_IS_040_OR_060) \ @@ -127,6 +129,57 @@ static inline void __flush_page_to_ram(v } } +extern void flush_icache_range(unsigned long address, unsigned long endaddr); + +extern void flush_icache_user_page(struct vm_area_struct *vma, + struct page *page, unsigned long addr, + int len); + +#else /* !CONFIG_MMU */ + +static inline void cache_clear(unsigned long paddr, int len) +{ +} + +static inline void cache_push(unsigned long paddr, int len) +{ +} + +static inline void cache_push_v(unsigned long vaddr, int len) +{ +} + +static inline void flush_cache_mm(struct mm_struct *mm) +{ +} + +static inline void flush_cache_range(struct vm_area_struct *vma, + unsigned long start, + unsigned long end) +{ +} + +static inline void flush_cache_page(struct vm_area_struct *vma, + unsigned long vmaddr) +{ +} + +static inline void __flush_page_to_ram(void *vaddr) +{ +} + +static inline void flush_icache_range(unsigned long address, + unsigned long endaddr) +{ +} + +static inline void flush_icache_user_page(struct vm_area_struct *vma, + struct page *page, + unsigned long addr, int len) +{ +} +#endif /* !CONFIG_MMU */ + #define flush_dcache_page(page) __flush_page_to_ram(page_address(page)) #define flush_dcache_mmap_lock(mapping) do { } while (0) #define flush_dcache_mmap_unlock(mapping) do { } while (0)