diff options
-rw-r--r-- | src/syscall-ia64.h | 12 | ||||
-rw-r--r-- | src/syscall.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/syscall-ia64.h b/src/syscall-ia64.h new file mode 100644 index 0000000..a7edd79 --- /dev/null +++ b/src/syscall-ia64.h @@ -0,0 +1,12 @@ +#define __NR_io_setup 1238 +#define __NR_io_destroy 1239 +#define __NR_io_getevents 1240 +#define __NR_io_submit 1241 +#define __NR_io_cancel 1242 + +#define syscall5(nr, a, b, c, d, e) __ia64_raw_syscall(nr, a, b, c, d, e) +#define syscall4(nr, a, b, c, d) syscall5(nr, a, b, c, d, 0) +#define syscall3(nr, a, b, c) syscall4(nr, a, b, c, 0) +#define syscall2(nr, a, b) syscall3(nr, a, b, 0) +#define syscall1(nr, a) syscall2(nr, a, 0) + diff --git a/src/syscall.h b/src/syscall.h index 400314c..fd15245 100644 --- a/src/syscall.h +++ b/src/syscall.h @@ -1,5 +1,7 @@ #if defined(__i386__) #include "syscall-i386.h" +#elif defined(__itanium__) +#include "syscall-ia64.h" #else #error "add syscall-arch.h" #endif |