Skip to content
Commit 87b47596 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

toolchain: xtensa: Define __sync_synchronize



This builtin gcc function is not available in xcc compiler.

Adding a memory compiler barrier as it is done in compiler_barrier.
compiler_barrier() and __sync_synchronize() are not the same, the
former is a sw barrier while the latter can be a hw barrier
like (mfence/sfence) in X86.

I didn't find anything equivalent for xtensa so just implementing a
SW barrier.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent ffa1532b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment