Commit 74be186b authored by Tristan Gingold's avatar Tristan Gingold Committed by Federico Vaga

sw:fw: add a missing volatile.

Signed-off-by: Tristan Gingold's avatarTristan Gingold <tristan.gingold@cern.ch>
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent b43e98b4
......@@ -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