0003-harness-Add-KERNEL_RW_POINTER-for-various-32-bit-arc.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 9e87b37ec648e69f641dd83c7909a337dbd15728 Mon Sep 17 00:00:00 2001
  2. From: Guillem Jover <guillem@hadrons.org>
  3. Date: Wed, 14 Aug 2019 03:30:09 +0200
  4. Subject: [PATCH libaio 03/11] harness: Add KERNEL_RW_POINTER for various
  5. 32-bit architectures
  6. Signed-off-by: Guillem Jover <guillem@hadrons.org>
  7. ---
  8. harness/main.c | 9 +++++++++
  9. 1 file changed, 9 insertions(+)
  10. diff --git a/harness/main.c b/harness/main.c
  11. index 82e9c69..0eed7bd 100644
  12. --- a/harness/main.c
  13. +++ b/harness/main.c
  14. @@ -12,7 +12,16 @@
  15. #include <libaio.h>
  16. #if __LP64__ == 0
  17. +#if defined(__i386__) || defined(__powerpc__)
  18. #define KERNEL_RW_POINTER ((void *)0xc0010000)
  19. +#elif defined(__arm__) || defined(__s390__)
  20. +#define KERNEL_RW_POINTER ((void *)0x00010000)
  21. +#elif defined(__sparc__)
  22. +#define KERNEL_RW_POINTER ((void *)0xf0010000)
  23. +#else
  24. +#warning Not really sure where kernel memory is. Guessing.
  25. +#define KERNEL_RW_POINTER ((void *)0xc0010000)
  26. +#endif
  27. #else
  28. //#warning Not really sure where kernel memory is. Guessing.
  29. #define KERNEL_RW_POINTER ((void *)0xffffffff81000000)
  30. --
  31. 2.26.0.292.g33ef6b2f38