mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-20 16:46:14 +00:00

Before the change described in https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631393.html it appeared that inlining built-in GCC function __atomic_test_and_set() was incorrect. It resulted in a non-atomic write. For GCC toolchains which do not have such patch yet, this commit fixes __atomic_test_and_set to be atomic in IDF's builds.
Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
---|