summaryrefslogtreecommitdiff
path: root/src/libaio.h
diff options
context:
space:
mode:
authorJeff Moyer <jmoyer@redhat.com>2013-01-30 14:55:23 -0500
committerJeff Moyer <jmoyer@redhat.com>2013-01-31 15:44:17 -0500
commitd88423b54b84a483a36ee5c9c20397ce3102385b (patch)
tree71f7e95002db8c407e7d6f27035d9313c472cc0f /src/libaio.h
parent531f075f251a16ef712e4f8da2fcd13794369b3b (diff)
downloadlibaio-d88423b54b84a483a36ee5c9c20397ce3102385b.tar.gz
add arm64 (aarch64) support
The libaio.h changes came from Riku Voipio <riku.voipio@linaro.org>. The syscall-arm64.h file is an adapter version of the syscall-arm.h file. Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Diffstat (limited to 'src/libaio.h')
-rw-r--r--src/libaio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libaio.h b/src/libaio.h
index 18dbc2a..c03ff9c 100644
--- a/src/libaio.h
+++ b/src/libaio.h
@@ -91,6 +91,16 @@ typedef enum io_iocb_cmd {
#define PADDED(x, y) unsigned y; x
#define PADDEDptr(x, y) unsigned y; x
#define PADDEDul(x, y) unsigned y; unsigned long x
+#elif defined(__aarch64__)
+# if defined (__AARCH64EB__) /* big endian, 64 bits */
+#define PADDED(x, y) unsigned y; x
+#define PADDEDptr(x,y) x
+#define PADDEDul(x, y) unsigned long x
+# elif defined(__AARCH64EL__) /* little endian, 64 bits */
+#define PADDED(x, y) x, y
+#define PADDEDptr(x, y) x
+#define PADDEDul(x, y) unsigned long x
+# endif
#else
#error endian?
#endif