From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: [PATCH 3/3] app/test: enable test_red to build on non x86 platform Date: Tue, 18 Aug 2015 18:10:05 +0530 Message-ID: <1439901605-31164-4-git-send-email-jerin.jacob@caviumnetworks.com> References: <1439901605-31164-1-git-send-email-jerin.jacob@caviumnetworks.com> <1439901605-31164-2-git-send-email-jerin.jacob@caviumnetworks.com> <1439901605-31164-3-git-send-email-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain To: Return-path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0070.outbound.protection.outlook.com [157.56.111.70]) by dpdk.org (Postfix) with ESMTP id 4965E8E94 for ; Tue, 18 Aug 2015 14:41:39 +0200 (CEST) In-Reply-To: <1439901605-31164-3-git-send-email-jerin.jacob@caviumnetworks.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Jerin Jacob --- app/test/test_red.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_red.c b/app/test/test_red.c index 262df72..813c508 100644 --- a/app/test/test_red.c +++ b/app/test/test_red.c @@ -146,6 +146,7 @@ static void rdtsc_prof_init(struct rdtsc_prof *p, const char *name) static inline void rdtsc_prof_start(struct rdtsc_prof *p) { +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) || defined(RTE_ARCH_X86_X32) #ifdef __PIC__ asm volatile ( "mov %%ebx, %%edi\n" @@ -155,6 +156,7 @@ static inline void rdtsc_prof_start(struct rdtsc_prof *p) #else asm( "cpuid" : : : "%eax", "%ebx", "%ecx", "%edx" ); #endif +#endif p->clk_start = rte_rdtsc(); } -- 2.1.0