diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2014-05-02 21:47:46 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-05-14 15:17:41 +0400 |
commit | 4e68057dbe519f437e4aaa3c13a42f2c82ad30a4 (patch) | |
tree | 6319356caf336c07b209114a514c56d509ef648b /include | |
parent | 94850e1582c11fcf2054876b1e8f24e5803818ad (diff) |
include/*: asm compatible with -std=c99
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/odp_atomic.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/odp_atomic.h b/include/odp_atomic.h index 7f3e1ec8..5a25dc7a 100644 --- a/include/odp_atomic.h +++ b/include/odp_atomic.h @@ -230,8 +230,9 @@ static inline uint32_t odp_atomic_fetch_inc_u32(odp_atomic_u32_t *ptr) { uint32_t ret; - asm __volatile__ ("syncws"); - asm __volatile__ ("lai %0,(%2)" : "=r" (ret), "+m" (ptr) : "r" (ptr)); + __asm__ __volatile__ ("syncws"); + __asm__ __volatile__ ("lai %0,(%2)" : "=r" (ret), "+m" (ptr) : + "r" (ptr)); return ret; } |