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