mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-08-18 11:29:49 +08:00
Use atomic_flag type and the GCC __sync built-in functions for atomic memory access. Initialize using ATOMIC_FLAG_INIT as a compound literal or a cast if scalar type depending on which atomic.h is used. The Linux client clears shared memory in ipi_shmem_echo(). Do not clear it again from the RPU in ipi_shmem_echod() to avoid a race. Signed-off-by: Sergei Korneichuk <sergei.korneichuk@amd.com>