From 7791885da4e72ecbd9dd5c27be53b876f3630e9a Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Wed, 14 Aug 2019 03:25:22 +0200
Subject: [PATCH libaio 06/11] Add m68k support

Signed-off-by: Guillem Jover <guillem@hadrons.org>
---
 harness/main.c     | 2 +-
 src/syscall-m68k.h | 5 +++++
 src/syscall.h      | 2 ++
 3 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 src/syscall-m68k.h

diff --git a/harness/main.c b/harness/main.c
index 01c81aa..99d393f 100644
--- a/harness/main.c
+++ b/harness/main.c
@@ -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
index 0000000..2dd4a9b
--- /dev/null
+++ b/src/syscall-m68k.h
@@ -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
diff --git a/src/syscall.h b/src/syscall.h
index 61c18c6..a88876f 100644
--- a/src/syscall.h
+++ b/src/syscall.h
@@ -27,6 +27,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__)
-- 
2.26.0.292.g33ef6b2f38

