summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen LaHaise <bcrl@kvack.org>2002-09-30 22:09:56 +0000
committerBen LaHaise <bcrl@kvack.org>2002-09-30 22:09:56 +0000
commitcad22bfe06bc8b33ca21cc12c9ba36b15dcf79ba (patch)
treed29c97df855d6c53ec6f2d2cf779c5d23b499304
parent25ce0c4b17fd04828e669fdaac839f497f2bd08f (diff)
downloadlibaio-cad22bfe06bc8b33ca21cc12c9ba36b15dcf79ba.tar.gz
oooh, powerpc support for libaio
-rw-r--r--ChangeLog1
-rw-r--r--src/libaio.h4
-rw-r--r--src/syscall.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b918832..ddcf6e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
pass the timeout for updating as per 2.5
- fixes for ia64, now works
- fixes for x86-64
+ - powerpc support from Gianni Tedesco <gianni@ecsc.co.uk>
- disable the NULL check in harness/cases/4.t on ia64: ia64
maps the 0 page and causes this check to fail.
diff --git a/src/libaio.h b/src/libaio.h
index 0dfa194..d1a202c 100644
--- a/src/libaio.h
+++ b/src/libaio.h
@@ -51,6 +51,10 @@ typedef enum io_iocb_cmd {
#define PADDED(x, y) x, y
#define PADDEDptr(x, y) x
#define PADDEDul(x, y) unsigned long x
+#elif defined(__PPC__)
+#define PADDED(x, y) x; unsigned y
+#define PADDEDptr(x, y) x; unsigned y
+#define PADDEDul(x, y) unsigned long x; unsigned y
#else
#error endian?
#endif
diff --git a/src/syscall.h b/src/syscall.h
index abbd443..3280810 100644
--- a/src/syscall.h
+++ b/src/syscall.h
@@ -10,6 +10,8 @@
#include "syscall-x86_64.h"
#elif defined(__ia64__)
#include "syscall-ia64.h"
+#elif defined(__PPC__)
+#include "syscall-ppc.h"
#else
#error "add syscall-arch.h"
#endif