patch-2.3.47 linux/include/asm-arm/proc-armv/cache.h

Next file: linux/include/asm-arm/unaligned.h
Previous file: linux/include/asm-arm/proc-armo/cache.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/include/asm-arm/proc-armv/cache.h linux/include/asm-arm/proc-armv/cache.h
@@ -1,3 +1,5 @@
+#include <asm/mman.h>
+
 /*
  * Cache flushing...
  */
@@ -41,6 +43,12 @@
 
 #define flush_icache_range(_start,_end)					\
 	cpu_flush_icache_area((_start), (_end) - (_start))
+
+#define flush_icache_page(vma,pg)					\
+	do {								\
+		if ((vma)->vm_flags & PROT_EXEC)			\
+			cpu_flush_icache_page(page_address(pg));	\
+	} while (0)
 
 /*
  * We don't have a MEMC chip...

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)