* [dpdk-dev] [PATCH] spinlock: fix build with clang
@ 2014-01-24 15:29 Olivier Matz
2014-01-27 16:04 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Olivier Matz @ 2014-01-24 15:29 UTC (permalink / raw)
To: dev
LLVM clang requires an explicitly sized "cmp" assembly instruction.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
---
lib/librte_eal/common/include/rte_spinlock.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"
--
1.8.4.rc3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-27 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-24 15:29 [dpdk-dev] [PATCH] spinlock: fix build with clang Olivier Matz
2014-01-27 16:04 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).