0006-Add-m68k-support.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From 7791885da4e72ecbd9dd5c27be53b876f3630e9a Mon Sep 17 00:00:00 2001
  2. From: Guillem Jover <guillem@hadrons.org>
  3. Date: Wed, 14 Aug 2019 03:25:22 +0200
  4. Subject: [PATCH libaio 06/11] Add m68k support
  5. Signed-off-by: Guillem Jover <guillem@hadrons.org>
  6. ---
  7. harness/main.c | 2 +-
  8. src/syscall-m68k.h | 5 +++++
  9. src/syscall.h | 2 ++
  10. 3 files changed, 8 insertions(+), 1 deletion(-)
  11. create mode 100644 src/syscall-m68k.h
  12. diff --git a/harness/main.c b/harness/main.c
  13. index 01c81aa..99d393f 100644
  14. --- a/harness/main.c
  15. +++ b/harness/main.c
  16. @@ -14,7 +14,7 @@
  17. #if __LP64__ == 0
  18. #if defined(__i386__) || defined(__powerpc__) || defined(__mips__)
  19. #define KERNEL_RW_POINTER ((void *)0xc0010000)
  20. -#elif defined(__arm__) || defined(__s390__)
  21. +#elif defined(__arm__) || defined(__m68k__) || defined(__s390__)
  22. #define KERNEL_RW_POINTER ((void *)0x00010000)
  23. #elif defined(__hppa__)
  24. #define KERNEL_RW_POINTER ((void *)0x10100000)
  25. diff --git a/src/syscall-m68k.h b/src/syscall-m68k.h
  26. new file mode 100644
  27. index 0000000..2dd4a9b
  28. --- /dev/null
  29. +++ b/src/syscall-m68k.h
  30. @@ -0,0 +1,5 @@
  31. +#define __NR_io_setup 241
  32. +#define __NR_io_destroy 242
  33. +#define __NR_io_getevents 243
  34. +#define __NR_io_submit 244
  35. +#define __NR_io_cancel 245
  36. diff --git a/src/syscall.h b/src/syscall.h
  37. index 61c18c6..a88876f 100644
  38. --- a/src/syscall.h
  39. +++ b/src/syscall.h
  40. @@ -27,6 +27,8 @@
  41. #include "syscall-arm.h"
  42. #elif defined(__sparc__)
  43. #include "syscall-sparc.h"
  44. +#elif defined(__m68k__)
  45. +#include "syscall-m68k.h"
  46. #elif defined(__hppa__)
  47. #include "syscall-parisc.h"
  48. #elif defined(__mips__)
  49. --
  50. 2.26.0.292.g33ef6b2f38