summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Moyer <Jeff Moyer jmoyer@redhat.com>2009-06-09 14:40:03 -0400
committerJeff Moyer <Jeff Moyer jmoyer@redhat.com>2009-06-09 14:40:03 -0400
commit10be3aea63082948e3a2a3f77f0d342ec99d4cc9 (patch)
tree17495219ca15e22fa8b3a99b73a53802f335e254
parent2f8fe529f3a19a9033285bf484c2140002916fed (diff)
downloadlibaio-10be3aea63082948e3a2a3f77f0d342ec99d4cc9.tar.gz
Instead of checking for __LP64__, the author of the test harness
decided to check for __i386__ when deciding whether pointers should be 32 or 64 bits. I've fixed this so that the tests build and run properly on 32 bit platforms other than i386.
-rw-r--r--harness/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/harness/main.c b/harness/main.c
index e8f0143..9ecd5da 100644
--- a/harness/main.c
+++ b/harness/main.c
@@ -11,11 +11,11 @@
#include <libaio.h>
-#if defined(__i386__)
+#if __LP64__ == 0
#define KERNEL_RW_POINTER ((void *)0xc0010000)
#else
//#warning Not really sure where kernel memory is. Guessing.
-#define KERNEL_RW_POINTER ((void *)0xffffffffc0010000)
+#define KERNEL_RW_POINTER ((void *)0xffffffff81000000)
#endif