xen/arm64: Add an helper to invalidate all instruction caches

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Julien Grall authored and Stefano Stabellini committed 2016-07-13 18:30:44 +01:00
1 parent bfb489629c
commit fb9d877a9c
1 file changed
+6
+6
View 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.
*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.