]> granicus.if.org Git - libatomic_ops/commit
Fix AO_nop_full and AO_load_read for AArch64
authorIvan Maidanski <ivmai@mail.ru>
Wed, 23 Jan 2013 21:36:12 +0000 (01:36 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 23 Jan 2013 21:36:12 +0000 (01:36 +0400)
commitfbfc0a4f5b2cfccb7f9a51a46cae7ce621ced4e7
treea6f25325e7e7747f72ec574ca5a6de64d1495fd5
parentda37b2c2e56291d54ff16fa24df1498783ed881a
Fix AO_nop_full and AO_load_read for AArch64

* src/atomic_ops/sysdeps/gcc/aarch64.h: Place include of
read_ordered.h to the end of file (to be after AO_load definition).
* src/atomic_ops/sysdeps/gcc/aarch64.h (AO_nop_full): Force compiler
barrier for the uni-processor case.
* src/atomic_ops/sysdeps/gcc/aarch64.h (AO_load_acquire): Comment out
and add FIXME (due to read_ordered.h).
* src/atomic_ops/sysdeps/gcc/aarch64.h (AO_test_and_set,
AO_test_and_set_acquire, AO_test_and_set_release,
AO_test_and_set_full): Cast result to AO_TS_VAL_t (since
__atomic_test_and_set returns AO_TS_t value).
src/atomic_ops/sysdeps/gcc/aarch64.h