[PATCH libaio 05/11] Add PARISC support
authorGuillem Jover <guillem@hadrons.org>
Wed, 14 Aug 2019 01:22:10 +0000 (03:22 +0200)
committerGuillem Jover <guillem@debian.org>
Thu, 11 Nov 2021 03:56:01 +0000 (03:56 +0000)
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0005-Add-PARISC-support.patch

harness/main.c
src/libaio.h
src/syscall-parisc.h [new file with mode: 0644]
src/syscall.h

index 33d8e468cdea98a81413be7338eb8a95665c461c..01c81aab2dc055eeb38205a5aaf5ec77dcc71fd4 100644 (file)
@@ -16,6 +16,8 @@
 #define KERNEL_RW_POINTER      ((void *)0xc0010000)
 #elif defined(__arm__) || defined(__s390__)
 #define KERNEL_RW_POINTER      ((void *)0x00010000)
+#elif defined(__hppa__)
+#define KERNEL_RW_POINTER      ((void *)0x10100000)
 #elif defined(__sparc__)
 #define KERNEL_RW_POINTER      ((void *)0xf0010000)
 #else
index 26b07f9db228db04a376ce436fed2313bbb67b02..29005d04dac796efbceecc4af97ff8cf5bae0f00 100644 (file)
@@ -75,6 +75,7 @@ typedef enum io_iocb_cmd {
 
 /* big endian, 64 bits */
 #elif defined(__powerpc64__) || defined(__s390x__) || \
+      (defined(__hppa__) && defined(__arch64__)) || \
       (defined(__sparc__) && defined(__arch64__)) || \
       (defined(__mips64) && defined(__MIPSEB__)) || \
       (defined(__aarch64__) && defined(__AARCH64EB__)) || \
diff --git a/src/syscall-parisc.h b/src/syscall-parisc.h
new file mode 100644 (file)
index 0000000..1738075
--- /dev/null
@@ -0,0 +1,5 @@
+#define __NR_io_setup          215
+#define __NR_io_destroy                216
+#define __NR_io_getevents      217
+#define __NR_io_submit         218
+#define __NR_io_cancel         219
index db78e28190b711c9656263b3505e5512b09869a6..61c18c6af91460f8762d5850bec2e92556dd7b51 100644 (file)
@@ -27,6 +27,8 @@
 #include "syscall-arm.h"
 #elif defined(__sparc__)
 #include "syscall-sparc.h"
+#elif defined(__hppa__)
+#include "syscall-parisc.h"
 #elif defined(__mips__)
 #include "syscall-mips.h"
 #elif defined(__aarch64__) || defined(__riscv)