From: Guillem Jover Date: Wed, 14 Aug 2019 01:30:09 +0000 (+0200) Subject: [PATCH libaio 03/11] harness: Add KERNEL_RW_POINTER for various 32-bit architectures X-Git-Tag: archive/raspbian/0.3.112-13+rpi1~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b01585a3a050656f2fb0b53b48fa7de04eff6272;p=libaio.git [PATCH libaio 03/11] harness: Add KERNEL_RW_POINTER for various 32-bit architectures Signed-off-by: Guillem Jover Gbp-Pq: Name 0003-harness-Add-KERNEL_RW_POINTER-for-various-32-bit-arc.patch --- diff --git a/harness/main.c b/harness/main.c index 82e9c69..0eed7bd 100644 --- a/harness/main.c +++ b/harness/main.c @@ -12,7 +12,16 @@ #include #if __LP64__ == 0 +#if defined(__i386__) || defined(__powerpc__) #define KERNEL_RW_POINTER ((void *)0xc0010000) +#elif defined(__arm__) || defined(__s390__) +#define KERNEL_RW_POINTER ((void *)0x00010000) +#elif defined(__sparc__) +#define KERNEL_RW_POINTER ((void *)0xf0010000) +#else +#warning Not really sure where kernel memory is. Guessing. +#define KERNEL_RW_POINTER ((void *)0xc0010000) +#endif #else //#warning Not really sure where kernel memory is. Guessing. #define KERNEL_RW_POINTER ((void *)0xffffffff81000000)