1 // SPDX-License-Identifier: BSD-3-Clause 2 3 #include <stdint.h> 4 #include <xtensa/hal.h> 5 6 int _xt_atomic_compare_exchange_4(int32_t *address, int32_t test_value, int32_t set_value); 7 _xt_atomic_compare_exchange_4(int32_t * address,int32_t test_value,int32_t set_value)8int _xt_atomic_compare_exchange_4(int32_t *address, int32_t test_value, int32_t set_value) 9 { 10 return xthal_compare_and_set(address, test_value, set_value); 11 } 12