diff --git a/src/arm.h b/src/arm.h index e5b47b2d0a..93f80842c1 100644 --- a/src/arm.h +++ b/src/arm.h @@ -58,9 +58,11 @@ loadMemoryBarrier() } inline void -syncInstructionCache(const void* start UNUSED, unsigned size UNUSED) +syncInstructionCache(const void* start, unsigned size) { - asm("nop"); + __clear_cache + (const_cast(start), + const_cast(static_cast(start) + size)); } typedef int (__kernel_cmpxchg_t)(int oldval, int newval, int *ptr);