arch/sim: Fix clang error: address argument to atomic operation must be a pointer to _Atomic type

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-08-29 11:09:57 -07:00 committed by Masayuki Ishikawa
parent 165e55f92c
commit 406c6ae4dd
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ uint8_t up_testset(volatile uint8_t *lock)
* following test and set is atomic.
*/
return atomic_exchange(lock, 1);
return atomic_exchange((_Atomic uint8_t *)lock, 1);
#else
/* In the non-SMP case, the simulation is implemented with a single thread