summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/flush.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-10-25 13:35:13 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-12-04 14:58:51 +0000
commit9e95922b1016ac941db7edcf6b6088b3c2e916c8 (patch)
tree1b60b7231f9412e7c842c9a12804b3ab914ca5cd /arch/arm/mm/flush.c
parent115b22474eb1905da2f606a057da3455833333d3 (diff)
downloadlinux-9e95922b1016ac941db7edcf6b6088b3c2e916c8.tar.bz2
ARM: I-cache: Add invalidation for VIVT ASID tagged caches
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/flush.c')
-rw-r--r--arch/arm/mm/flush.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c
index dc66f867bec4..9770e27dd581 100644
--- a/arch/arm/mm/flush.c
+++ b/arch/arm/mm/flush.c
@@ -69,6 +69,9 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned
: "cc");
__flush_icache_all();
}
+
+ if (vma->vm_flags & VM_EXEC && icache_is_vivt_asid_tagged())
+ __flush_icache_all();
}
void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn)
@@ -82,6 +85,9 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsig
flush_pfn_alias(pfn, user_addr);
__flush_icache_all();
}
+
+ if (vma->vm_flags & VM_EXEC && icache_is_vivt_asid_tagged())
+ __flush_icache_all();
}
void flush_ptrace_access(struct vm_area_struct *vma, struct page *page,