aboutsummaryrefslogtreecommitdiff
path: root/libs/libaio/patches/004_arches_x32.patch
blob: 75d3566cf694f4f4d31756e71170d4384925c845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Description: Add support for x32 (from the Yocto project)
Author: Daniel Schepler <dschepler@gmail.com>
Origin: vendor
Forwarded: no
Bug-Debian: 702183
Last-Update: 2013-05-06


---
 harness/main.c       |    2 +-
 src/syscall-x86_64.h |   10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

--- a/src/syscall-x86_64.h
+++ b/src/syscall-x86_64.h
@@ -1,5 +1,15 @@
+#ifndef __NR_io_setup
 #define __NR_io_setup		206
+#endif
+#ifndef __NR_io_destroy
 #define __NR_io_destroy		207
+#endif
+#ifndef __NR_io_getevents
 #define __NR_io_getevents	208
+#endif
+#ifndef __NR_io_submit
 #define __NR_io_submit		209
+#endif
+#ifndef __NR_io_cancel
 #define __NR_io_cancel		210
+#endif
--- 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(__m68k__) || defined(__s390__) || defined(__sh__)
+#elif defined(__arm__) || defined(__m68k__) || defined(__s390__) || defined(__sh__) || defined(__x86_64__)
 #define KERNEL_RW_POINTER	((void *)0x00010000)
 #elif defined(__hppa__)
 #define KERNEL_RW_POINTER	((void *)0x10100000)