[ofa-general] [PATCH] uDAPL - dapltest - fix build issues on SUSE10 ia64

Arlin Davis arlin.r.davis at intel.com
Thu Mar 15 11:22:47 PDT 2007


Fixes dapltest build problems on SUSE ia64 (applied - master and ofed_1_2)

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
old mode 100644
new mode 100755
index 2903e78..37a2bd4
--- a/test/dapltest/mdep/linux/dapl_mdep_user.h
+++ b/test/dapltest/mdep/linux/dapl_mdep_user.h
@@ -43,10 +43,6 @@
 #include <string.h>
 #include <sys/times.h>
 
-#ifdef __ia64__
-#include <asm/timex.h>
-#endif
-
 /* Default Device Name */
 #define DT_MdepDeviceName    "ia0a"
 
@@ -124,10 +120,9 @@ DT_Mdep_GetTimeStamp ( void )
 #else
 
 #ifdef __ia64__
-    unsigned long x;
-
-    x = get_cycles ();
-    return x;
+    unsigned long ret;
+    __asm__ __volatile__ ("mov %0=ar.itc" : "=r"(ret));
+    return ret;
 #else
 #if defined(__PPC64__)
     unsigned int tbl, tbu0, tbu1;




More information about the general mailing list