summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2014-01-24 16:29:06 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-27 16:58:45 +0100
commita064e7b2d60a32a98525f85a69a4a9d52375bab6 (patch)
tree1a8ebbe6070caa0f68a461bcbd8ab5d9fbbf66fb /lib
parent4c745617a18fc37bd2a08aad512846a416665ae3 (diff)
downloaddpdk-a064e7b2d60a32a98525f85a69a4a9d52375bab6.zip
dpdk-a064e7b2d60a32a98525f85a69a4a9d52375bab6.tar.gz
dpdk-a064e7b2d60a32a98525f85a69a4a9d52375bab6.tar.xz
spinlock: fix build with clang
LLVM clang requires an explicitly sized "cmp" assembly instruction. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/librte_eal/common/include/rte_spinlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_eal/common/include/rte_spinlock.h b/lib/librte_eal/common/include/rte_spinlock.h
index f7a245a..c530993 100644
--- a/lib/librte_eal/common/include/rte_spinlock.h
+++ b/lib/librte_eal/common/include/rte_spinlock.h
@@ -98,7 +98,7 @@ rte_spinlock_lock(rte_spinlock_t *sl)
"jz 3f\n"
"2:\n"
"pause\n"
- "cmp $0, %[locked]\n"
+ "cmpl $0, %[locked]\n"
"jnz 2b\n"
"jmp 1b\n"
"3:\n"