diff --git a/cpu/esp32/thread_arch.c b/cpu/esp32/thread_arch.c index 2c97517b9fb126317a2eba43a91f8c1e36bc2651..713e30907eb339f77cc911b7bf7508b162994ac4 100644 --- a/cpu/esp32/thread_arch.c +++ b/cpu/esp32/thread_arch.c @@ -247,6 +247,13 @@ void thread_yield_higher(void) } #endif + /* + * Instruction fetch synchronize: Waits for all previously fetched load, + * store, cache, and special register write instructions that affect + * instruction fetch to be performed before fetching the next instruction. + */ + __asm__("isync"); + return; }