summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen LaHaise <bcrl@kvack.org>2002-09-12 05:06:33 +0000
committerBen LaHaise <bcrl@kvack.org>2002-09-12 05:06:33 +0000
commit6edda9f659be1ef43809b239d0dd30d809e57cfe (patch)
tree690f7f17b3ba8bec5c3d7787e30e41dbb3a35cc4
parentca9fefa3e580e5df4640d87cdbb31bb4552c5a77 (diff)
downloadlibaio-6edda9f659be1ef43809b239d0dd30d809e57cfe.tar.gz
this is half way towards libaio's needs on ia64. now to figure out the
asm...
-rw-r--r--src/syscall-ia64.h12
-rw-r--r--src/syscall.h2
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