diff -Naur numactl.orig/Makefile numactl/Makefile --- numactl.orig/Makefile Mon Jan 12 05:55:36 2004 +++ numactl/Makefile Wed Jan 14 18:34:36 2004 @@ -5,7 +5,7 @@ util.o stream_main.o stream_lib.o prefix := /usr -libdir := ${prefix}/lib64 +libdir := ${prefix}/lib all: numactl libnuma.so numademo numamon memhog stream diff -Naur numactl.orig/numademo.c numactl/numademo.c --- numactl.orig/numademo.c Thu Dec 18 07:12:19 2003 +++ numactl/numademo.c Wed Jan 14 19:16:04 2004 @@ -7,15 +7,22 @@ unsigned long msize; -#if !defined(__x86_64__) && !defined(__i386__) -#error implement rdtsc for your architecture +#if !defined(__x86_64__) && !defined(__i386__) && !defined(__ia64__) #endif +#if defined(__x86_64__) || defined(__i386__) #define rdtsc(val) do { \ unsigned low, high; \ asm volatile("rdtsc" : "=a" (low), "=d" (high)); \ val = (((unsigned long long)high)<<32) | low; \ } while(0) +#elif defined(__ia64__) +#define rdtsc(val) do { \ + asm volatile("mov %0=ar.itc" : "=r"(val)); \ +} while(0) +#else +#error implement rdtsc for your architecture +#endif enum test { MEMSET = 0, diff -Naur numactl.orig/syscall.c numactl/syscall.c --- numactl.orig/syscall.c Sat Jan 3 09:07:28 2004 +++ numactl/syscall.c Wed Jan 14 19:19:50 2004 @@ -7,7 +7,7 @@ #define WEAK __attribute__((weak)) -#ifdef __x86_64__ +#if defined(__x86_64__) #define __NR_sched_setaffinity 203 #define __NR_sched_getaffinity 204 @@ -15,6 +15,15 @@ #define __NR_set_mempolicy 238 #define __NR_get_mempolicy 239 +#elif defined __ia64__ + +#define __NR_sched_setaffinity 1231 +#define __NR_sched_getaffinity 1232 +#define __NR_mbind 1259 +#define __NR_set_mempolicy 1260 +#define __NR_get_mempolicy 1261 + + #else #define STUB 1