|
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)
|