eal/x86: fix atomic cmpset
authorNikhil Rao <nikhil.rao@intel.com>
Thu, 29 Sep 2016 21:24:53 +0000 (02:54 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Oct 2017 22:05:15 +0000 (00:05 +0200)
commit9d1c2a6a912bebde1139157b950e39ffa7192c9d
tree79999ad52150b70da95e83dcef7832e114aa82d5
parentf25f8f36764481a99c8deac357da40b034d9f00e
eal/x86: fix atomic cmpset

The original code used movl instead of xchgl, this caused
rte_atomic64_cmpset to use ebx as the lower dword of the source
to cmpxchg8b instead of the lower dword of function argument "src".

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Reported-by: Job Abraham <job.abraham@intel.com>
Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
Tested-by: Job Abraham <job.abraham@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/include/arch/x86/rte_atomic_32.h