Hi, Another version of change, I added atomic_compare_and_exchange_val_acq/atomic_compare_and_exchange_val_rel and atomic_compare_and_exchange_bool_acq/atomic_compare_and_exchange_boot_rel defenitions and also for gcc-4.7 and higher in the case of unsupported atomic compare and swap operation, it uses the kernel helper inlines. Tested on arm a9 with no new regressions. Ok to commit? Oh, sorry. I missed to attach the change. Here it is. thanks, Dinar.