From 10be3aea63082948e3a2a3f77f0d342ec99d4cc9 Mon Sep 17 00:00:00 2001 From: Jeff Moyer Date: Tue, 9 Jun 2009 14:40:03 -0400 Subject: 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. --- harness/main.c | 4 ++-- 1 file 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 -#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 -- cgit v1.2.1