Files
libmetal/examples
Sergei Korneichuk a48ec036fd examples: use atomic_flag type, __sync functions
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>
2022-12-13 09:39:33 +01:00
..