From 2b82c248638bba6e98ecf388c6e0b1f5f0b44028 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 26 Apr 2016 12:36:52 +0200 Subject: [PATCH] Fix -O0 clang build Signed-off-by: Damjan Marion --- lib/librte_eal/common/include/arch/x86/rte_rtm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_eal/common/include/arch/x86/rte_rtm.h b/lib/librte_eal/common/include/arch/x86/rte_rtm.h index d935641..30c1969 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_rtm.h +++ b/lib/librte_eal/common/include/arch/x86/rte_rtm.h @@ -50,11 +50,14 @@ void rte_xend(void) asm volatile(".byte 0x0f,0x01,0xd5" ::: "memory"); } +#define rte_xabort(x) asm volatile(".byte 0xc6,0xf8,%P0" :: "i" (x) : "memory") +#if 0 static __attribute__((__always_inline__)) inline void rte_xabort(const unsigned int status) { asm volatile(".byte 0xc6,0xf8,%P0" :: "i" (status) : "memory"); } +#endif static __attribute__((__always_inline__)) inline int rte_xtest(void) -- 2.7.4