Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: fix sh2a cache entry_mask

fix sh2a cache entry_mask in __flush_{purge,invalidate}_region.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Yoshihiro Shimoda and committed by
Paul Mundt
216813a8 464f763d

+4 -4
+4 -4
arch/sh/mm/cache-sh2a.c
··· 59 59 60 60 for (v = begin; v < end; v+=L1_CACHE_BYTES) { 61 61 ctrl_outl((v & CACHE_PHYSADDR_MASK), 62 - CACHE_OC_ADDRESS_ARRAY | (v & 0x000003f0) | 0x00000008); 62 + CACHE_OC_ADDRESS_ARRAY | (v & 0x000007f0) | 0x00000008); 63 63 } 64 64 back_to_cached(); 65 65 local_irq_restore(flags); ··· 82 82 /* I-cache invalidate */ 83 83 for (v = begin; v < end; v+=L1_CACHE_BYTES) { 84 84 ctrl_outl((v & CACHE_PHYSADDR_MASK), 85 - CACHE_IC_ADDRESS_ARRAY | (v & 0x000003f0) | 0x00000008); 85 + CACHE_IC_ADDRESS_ARRAY | (v & 0x000007f0) | 0x00000008); 86 86 } 87 87 #else 88 88 for (v = begin; v < end; v+=L1_CACHE_BYTES) { 89 89 ctrl_outl((v & CACHE_PHYSADDR_MASK), 90 - CACHE_IC_ADDRESS_ARRAY | (v & 0x000003f0) | 0x00000008); 90 + CACHE_IC_ADDRESS_ARRAY | (v & 0x000007f0) | 0x00000008); 91 91 ctrl_outl((v & CACHE_PHYSADDR_MASK), 92 - CACHE_OC_ADDRESS_ARRAY | (v & 0x000003f0) | 0x00000008); 92 + CACHE_OC_ADDRESS_ARRAY | (v & 0x000007f0) | 0x00000008); 93 93 } 94 94 #endif 95 95 back_to_cached();