Branch: refs/heads/main Home: https://github.com/OpenAMP/libmetal Commit: a48ec036fd1a5522760e5ac9b94938280461d780 https://github.com/OpenAMP/libmetal/commit/a48ec036fd1a5522760e5ac9b94938280... Author: Sergei Korneichuk sergei.korneichuk@amd.com Date: 2022-12-13 (Tue, 13 Dec 2022)
Changed paths: M examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c M examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/ipi_shmem_demod.c M examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_atomic_demod.c M examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c M examples/system/freertos/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c M examples/system/generic/zynqmp_r5/zynqmp_amp_demo/common.h M examples/system/generic/zynqmp_r5/zynqmp_amp_demo/ipi_latency_demod.c M examples/system/generic/zynqmp_r5/zynqmp_amp_demo/ipi_shmem_demod.c M examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_atomic_demod.c M examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_latency_demod.c M examples/system/generic/zynqmp_r5/zynqmp_amp_demo/shmem_throughput_demod.c M examples/system/linux/zynqmp/zynqmp_amp_demo/common.h M examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_latency_demo.c M examples/system/linux/zynqmp/zynqmp_amp_demo/ipi_shmem_demo.c M examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_atomic_demo.c M examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_latency_demo.c M examples/system/linux/zynqmp/zynqmp_amp_demo/shmem_throughput_demo.c
Log Message: ----------- 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
openamp-rp@lists.openampproject.org