]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm64: Add an helper to invalidate all instruction caches
authorJulien Grall <julien.grall@arm.com>
Wed, 22 Jun 2016 11:15:20 +0000 (12:15 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 12 Jun 2017 21:12:15 +0000 (14:12 -0700)
Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
master-commit-id: fb9d877a9c0f3d4d15db8f6e0c5506ea641862c6

xen/include/asm-arm/arm64/page.h

index 29a32cf4e77ebf87be9afad5d00d36020d58361a..fbdc8fb7711e5a2478a8f4e066f7ebbcc575a3f1 100644 (file)
@@ -24,6 +24,12 @@ static inline void write_pte(lpae_t *p, lpae_t pte)
  * inline asm operand) */
 #define __clean_and_invalidate_dcache_one(R) "dc  civac, %" #R ";"
 
+/* Invalidate all instruction caches in Inner Shareable domain to PoU */
+static inline void invalidate_icache(void)
+{
+    asm volatile ("ic ialluis");
+}
+
 /*
  * Flush all hypervisor mappings from the TLB of the local processor.
  *