aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2009-12-08 09:23:11 -0500
committerPaul Mundt <lethal@linux-sh.org>2009-12-08 22:34:46 -0500
commite717cc6c07f006be36e35189aacb28be4e30ad14 (patch)
tree781f264a9a0071c8b32a4ccb6d29482c90cb8b2d /arch/sh
parent6a5a0b9139b19dd1a107870269a35bc9cf18d2dc (diff)
sh: Can't compare physical and virtual addresses for aliases
It does not make sense to compare virtual and physical addresses for aliasing, only virtual addresses can be compared for aliases. Signed-off-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/mm/cache-sh4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c
index f36a08bf3d5c..560ddb6bc8a7 100644
--- a/arch/sh/mm/cache-sh4.c
+++ b/arch/sh/mm/cache-sh4.c
@@ -256,8 +256,7 @@ static void sh4_flush_cache_page(void *args)
256 address = (unsigned long)vaddr; 256 address = (unsigned long)vaddr;
257 } 257 }
258 258
259 if (pages_do_alias(address, phys)) 259 flush_cache_one(CACHE_OC_ADDRESS_ARRAY |
260 flush_cache_one(CACHE_OC_ADDRESS_ARRAY |
261 (address & shm_align_mask), phys); 260 (address & shm_align_mask), phys);
262 261
263 if (vma->vm_flags & VM_EXEC) 262 if (vma->vm_flags & VM_EXEC)