Mips32 icache vs dcache size typo
The patch below fixes what looks like a typo on mips32_flush_icache_page() which uses 'dcache_size' instead of 'icache_size'. The patch is part of the one sent by Carsten and the same fix was included in a kernel supplied to us by Broadcom. I haven't had a chance to try the rest of the patch suggested by Carsten yet, but this looks like an important fix for processors where dcache_size != icache_size.
Jon Burgess
mips/mm/c-mips32.c Thu Jul 11 09:55:08 2002 renamed from mips/mm/c-mips32.c~ Wed May 29 05:03:17 2002 +0 -1
@@ -303,7 +303,7 @@ if (!(vma->vm_flags & VM_EXEC)) return; - address = KSEG0 + ((unsigned long)page_address(page) & PAGE_MASK &
(dcache_size - 1));
+ address = KSEG0 + ((unsigned long)page_address(page) & PAGE_MASK &
(icache_size - 1));
blast_icache_page_indexed(address);}