Commit e3833c69 authored by Tristan Gingold's avatar Tristan Gingold

sw/fw: add a missing volatile.

parent 2dc0fde5
......@@ -828,7 +828,7 @@ static inline void smem_atomic_xor(int *p, int x)
* @param[in] p address on the shared memory
* @return the value before the set
*/
static inline int smem_atomic_test_and_set(int *p)
static inline int smem_atomic_test_and_set(volatile int *p)
{
/* shift right translates range in bytes into range in words */
return *(volatile int *)(p + (TRTL_SMEM_TYPE_TST_SET >> 2));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment