--- zzzz-none-000/linux-2.6.32.60/arch/mips/mm/cache.c 2012-10-07 21:41:24.000000000 +0000 +++ ur8-7270-606/linux-2.6.32.60/arch/mips/mm/cache.c 2011-07-20 07:23:51.000000000 +0000 @@ -20,6 +20,7 @@ #include #include #include +#include /* Cache operations. */ void (*flush_cache_all)(void); @@ -52,6 +53,8 @@ void (*_dma_cache_inv)(unsigned long start, unsigned long size); EXPORT_SYMBOL(_dma_cache_wback_inv); +EXPORT_SYMBOL(_dma_cache_wback); +EXPORT_SYMBOL(_dma_cache_inv); #endif /* CONFIG_DMA_NONCOHERENT */ @@ -157,10 +160,19 @@ void __devinit cpu_cache_init(void) { + avm_cache_set_coherency(); + if (cpu_has_3k_cache) { extern void __weak r3k_cache_init(void); - r3k_cache_init(); +#ifdef CONFIG_MACH_FUSIV_MIPS1 + extern void ld_mmu_lx4189(void); + + if((current_cpu_data.processor_id & 0xFFFF) == PRID_IMP_FUSIV_MIPS1) { + ld_mmu_lx4189(); + } else +#endif + r3k_cache_init(); } if (cpu_has_6k_cache) { extern void __weak r6k_cache_init(void);