]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/cacheflush.h
[ARM] 5092/1: Fix the I-cache invalidation on ARMv6 and later CPUs
[linux-2.6-omap-h63xx.git] / include / asm-arm / cacheflush.h
index 759a97b56eed8a189f1669f2d3ce9eb7fffba7e3..559fb4af1f626dd58452604e1e05230c5f2c2536 100644 (file)
@@ -410,6 +410,13 @@ extern void flush_dcache_page(struct page *);
 
 extern void __flush_dcache_page(struct address_space *mapping, struct page *page);
 
+static inline void __flush_icache_all(void)
+{
+       asm("mcr        p15, 0, %0, c7, c5, 0   @ invalidate I-cache\n"
+           :
+           : "r" (0));
+}
+
 #define ARCH_HAS_FLUSH_ANON_PAGE
 static inline void flush_anon_page(struct vm_area_struct *vma,
                         struct page *page, unsigned long vmaddr)