[ofa-general] RE: [Bug 408] dapltest compilation fails on x86 [PATCH]

Arlin Davis arlin.r.davis at intel.com
Wed Mar 7 14:29:11 PST 2007


James, please review this fix for dapltest build issue.


Signed-off by: Arlin Davis ardavis at ichips.intel.com

diff --git a/test/dapltest/mdep/linux/dapl_mdep_user.h b/test/dapltest/mdep/linux/dapl_mdep_user.h
index c05dd30..2903e78 100644
--- a/test/dapltest/mdep/linux/dapl_mdep_user.h
+++ b/test/dapltest/mdep/linux/dapl_mdep_user.h
@@ -117,7 +117,7 @@ typedef unsigned long long int 		DT_Mdep_TimeStamp;
 static _INLINE_ DT_Mdep_TimeStamp
 DT_Mdep_GetTimeStamp ( void )
 {
-#if defined(__GNUC__) && defined(__PENTIUM__)
+#if defined(__GNUC__) && defined(__i386__)
     DT_Mdep_TimeStamp x;
     __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
     return x;
@@ -143,7 +143,7 @@ DT_Mdep_GetTimeStamp ( void )
       asm volatile("rdtsc" : "=a" (__a), "=d" (__d)); 
       return ((unsigned long)__a) | (((unsigned long)__d)<<32);
 #else
-#error "Non-Pentium and Non-PPC Linux - unimplemented"
+#error "Linux CPU architecture - unimplemented"
 #endif
 #endif
 #endif




More information about the general mailing list