Skip to content

Commit

Permalink
ARM: I-cache: Add invalidation for VIVT ASID tagged caches
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Dec 4, 2009
1 parent 115b224 commit 9e95922
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mm/flush.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit 9e95922

Please sign in to comment.