[PATCH libaio 11/14] Add m68k support
authorGuillem Jover <guillem@hadrons.org>
Wed, 14 Aug 2019 01:25:22 +0000 (03:25 +0200)
committerGuillem Jover <guillem@debian.org>
Tue, 19 Apr 2022 13:57:07 +0000 (14:57 +0100)
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0011-Add-m68k-support.patch

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

index 01c81aab2dc055eeb38205a5aaf5ec77dcc71fd4..99d393f606b2f1e386064276c3d62bf7a0b9b27b 100644 (file)
@@ -14,7 +14,7 @@
 #if __LP64__ == 0
 #if defined(__i386__) || defined(__powerpc__) || defined(__mips__)
 #define KERNEL_RW_POINTER      ((void *)0xc0010000)
-#elif defined(__arm__) || defined(__s390__)
+#elif defined(__arm__) || defined(__m68k__) || defined(__s390__)
 #define KERNEL_RW_POINTER      ((void *)0x00010000)
 #elif defined(__hppa__)
 #define KERNEL_RW_POINTER      ((void *)0x10100000)
diff --git a/src/syscall-m68k.h b/src/syscall-m68k.h
new file mode 100644 (file)
index 0000000..2dd4a9b
--- /dev/null
@@ -0,0 +1,5 @@
+#define __NR_io_setup          241
+#define __NR_io_destroy                242
+#define __NR_io_getevents      243
+#define __NR_io_submit         244
+#define __NR_io_cancel         245
index 3a6c85ec5b43e15f12ca045b3583d7cd175590af..e3825dfdfb5c86373b79a7a2a4c5c80ba09bdf5c 100644 (file)
@@ -40,6 +40,8 @@
 #include "syscall-arm.h"
 #elif defined(__sparc__)
 #include "syscall-sparc.h"
+#elif defined(__m68k__)
+#include "syscall-m68k.h"
 #elif defined(__hppa__)
 #include "syscall-parisc.h"
 #elif defined(__mips__)