blob: 2ce0e7c856b96f2622ddd666a55a41698fad21c1 [file] [log] [blame]
Damjan Marione39a7b82016-04-26 14:54:57 +02001From 2b82c248638bba6e98ecf388c6e0b1f5f0b44028 Mon Sep 17 00:00:00 2001
2From: Damjan Marion <damarion@cisco.com>
3Date: Tue, 26 Apr 2016 12:36:52 +0200
4Subject: [PATCH] Fix -O0 clang build
5
6Signed-off-by: Damjan Marion <damarion@cisco.com>
7---
8 lib/librte_eal/common/include/arch/x86/rte_rtm.h | 3 +++
9 1 file changed, 3 insertions(+)
10
11diff --git a/lib/librte_eal/common/include/arch/x86/rte_rtm.h b/lib/librte_eal/common/include/arch/x86/rte_rtm.h
12index 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");
17 }
18
19+#define rte_xabort(x) asm volatile(".byte 0xc6,0xf8,%P0" :: "i" (x) : "memory")
20+#if 0
21 static __attribute__((__always_inline__)) inline
22 void rte_xabort(const unsigned int status)
23 {
24 asm volatile(".byte 0xc6,0xf8,%P0" :: "i" (status) : "memory");
25 }
26+#endif
27
28 static __attribute__((__always_inline__)) inline
29 int rte_xtest(void)
30--
312.7.4
32