diff options
author | Jeff Moyer <Jeff Moyer jmoyer@redhat.com> | 2009-06-09 14:45:27 -0400 |
---|---|---|
committer | Jeff Moyer <Jeff Moyer jmoyer@redhat.com> | 2009-06-09 14:45:27 -0400 |
commit | f997fa1a2f8d2673139b8e6317d27a435075df39 (patch) | |
tree | bb10f98b98a057ebda784d4b92e961d7a6e0a72c /src/libaio.h | |
parent | 10be3aea63082948e3a2a3f77f0d342ec99d4cc9 (diff) | |
download | libaio-0.3.108.tar.gz |
Add in ARM architecture support.libaio-0.3.108
This support was taken from the Debian package:
http://patch-tracking.debian.net/patch/series/view/libaio/0.3.106-3/00_arches.patch
Kedar Sovani tested this on the following processor:
Processor : Feroceon 88FR571-vd rev 0 (v5l)
by running the libaio test harness. All tests passed. I also ran the
test harness on a qemu emulated system, and all tests that I could run
passed. Due to a bug in qemu, I could not configure a system with enough
memory to run 2 of the tests. aio-dio-regress also passed testing on the
emulated system.
Diffstat (limited to 'src/libaio.h')
-rw-r--r-- | src/libaio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libaio.h b/src/libaio.h index 6cdde32..ffe8259 100644 --- a/src/libaio.h +++ b/src/libaio.h @@ -73,6 +73,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(__arm__) +# if defined (__ARMEB__) /* big endian, 32 bits */ +#define PADDED(x, y) unsigned y; x +#define PADDEDptr(x, y) unsigned y; x +#define PADDEDul(x, y) unsigned y; unsigned long x +# else /* little endian, 32 bits */ +#define PADDED(x, y) x; unsigned y +#define PADDEDptr(x, y) x; unsigned y +#define PADDEDul(x, y) unsigned long x; unsigned y +# endif #else #error endian? #endif |