commit | 87b475966347b04b8302e4938a10b7de280cc6cb | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Wed May 11 22:14:38 2022 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu May 12 16:11:39 2022 -0400 |
tree | 0915941459d746f98083c4475aafead8b530dc58 | |
parent | ffa1532be249f4096cefdf302ce72d3610858d60 [diff] |
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: Flavio Ceolin <flavio.ceolin@intel.com>