Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0003-harness-Add-KERNEL_RW_POINTER-for-various-32-bit-arc.patch
#include <libaio.h>
#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)