0005-Add-PARISC-support.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. From 1f01c77ff58df16b75d666a4737d80a09ba61b92 Mon Sep 17 00:00:00 2001
  2. From: Guillem Jover <guillem@hadrons.org>
  3. Date: Wed, 14 Aug 2019 03:22:10 +0200
  4. Subject: [PATCH libaio 05/11] Add PARISC support
  5. Signed-off-by: Guillem Jover <guillem@hadrons.org>
  6. ---
  7. harness/main.c | 2 ++
  8. src/libaio.h | 1 +
  9. src/syscall-parisc.h | 5 +++++
  10. src/syscall.h | 2 ++
  11. 4 files changed, 10 insertions(+)
  12. create mode 100644 src/syscall-parisc.h
  13. diff --git a/harness/main.c b/harness/main.c
  14. index 33d8e46..01c81aa 100644
  15. --- a/harness/main.c
  16. +++ b/harness/main.c
  17. @@ -16,6 +16,8 @@
  18. #define KERNEL_RW_POINTER ((void *)0xc0010000)
  19. #elif defined(__arm__) || defined(__s390__)
  20. #define KERNEL_RW_POINTER ((void *)0x00010000)
  21. +#elif defined(__hppa__)
  22. +#define KERNEL_RW_POINTER ((void *)0x10100000)
  23. #elif defined(__sparc__)
  24. #define KERNEL_RW_POINTER ((void *)0xf0010000)
  25. #else
  26. diff --git a/src/libaio.h b/src/libaio.h
  27. index 26b07f9..29005d0 100644
  28. --- a/src/libaio.h
  29. +++ b/src/libaio.h
  30. @@ -75,6 +75,7 @@ typedef enum io_iocb_cmd {
  31. /* big endian, 64 bits */
  32. #elif defined(__powerpc64__) || defined(__s390x__) || \
  33. + (defined(__hppa__) && defined(__arch64__)) || \
  34. (defined(__sparc__) && defined(__arch64__)) || \
  35. (defined(__mips64) && defined(__MIPSEB__)) || \
  36. (defined(__aarch64__) && defined(__AARCH64EB__)) || \
  37. diff --git a/src/syscall-parisc.h b/src/syscall-parisc.h
  38. new file mode 100644
  39. index 0000000..1738075
  40. --- /dev/null
  41. +++ b/src/syscall-parisc.h
  42. @@ -0,0 +1,5 @@
  43. +#define __NR_io_setup 215
  44. +#define __NR_io_destroy 216
  45. +#define __NR_io_getevents 217
  46. +#define __NR_io_submit 218
  47. +#define __NR_io_cancel 219
  48. diff --git a/src/syscall.h b/src/syscall.h
  49. index db78e28..61c18c6 100644
  50. --- a/src/syscall.h
  51. +++ b/src/syscall.h
  52. @@ -27,6 +27,8 @@
  53. #include "syscall-arm.h"
  54. #elif defined(__sparc__)
  55. #include "syscall-sparc.h"
  56. +#elif defined(__hppa__)
  57. +#include "syscall-parisc.h"
  58. #elif defined(__mips__)
  59. #include "syscall-mips.h"
  60. #elif defined(__aarch64__) || defined(__riscv)
  61. --
  62. 2.26.0.292.g33ef6b2f38