Branch: refs/heads/master Home: https://github.com/OpenAMP/libmetal Commit: 9a3162ecc0a353e4b14fe9e81a0d3d69f9c67eca https://github.com/OpenAMP/libmetal/commit/9a3162ecc0a353e4b14fe9e81a0d3d69f... Author: Simon Leiner simon@leiner.me Date: 2020-09-07 (Mon, 07 Sep 2020)
Changed paths: M lib/system/freertos/mutex.h M lib/system/generic/mutex.h
Log Message: ----------- Stop using atomic_flag_*() for atomic_int in mutex
The atomic_flag_* functions are only defined for operands of the type atomic_flag so the previous implementation relied on undefined behavior. Because of the need for a read without side effects (in __metal_mutex_is_acquired), it is not possible to use the atomic_flags type for the mutex implementation. Because of this, all atomic_flag_* functions are replaced with the appropriate functions for atomic value types.
Signed-off-by: Simon Leiner simon@leiner.me
openamp-rp@lists.openampproject.org