[dpdk-dev] [PATCH 3/3] app/test: enable test_red to build on non x86 platform

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Aug 25 14:03:13 CEST 2015


2015-08-18 18:10, Jerin Jacob:
> --- a/app/test/test_red.c
> +++ b/app/test/test_red.c
> +#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();

The right fix would be to move that arch-specific code into an EAL abstraction.



More information about the dev mailing list