You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. Description: Add support for x32 (from the Yocto project)
  2. Author: Daniel Schepler <dschepler@gmail.com>
  3. Origin: vendor
  4. Forwarded: no
  5. Bug-Debian: 702183
  6. Last-Update: 2013-05-06
  7. ---
  8. harness/main.c | 2 +-
  9. src/syscall-x86_64.h | 10 ++++++++++
  10. 2 files changed, 11 insertions(+), 1 deletion(-)
  11. --- a/src/syscall-x86_64.h
  12. +++ b/src/syscall-x86_64.h
  13. @@ -1,6 +1,16 @@
  14. +#ifndef __NR_io_setup
  15. #define __NR_io_setup 206
  16. +#endif
  17. +#ifndef __NR_io_destroy
  18. #define __NR_io_destroy 207
  19. +#endif
  20. +#ifndef __NR_io_getevents
  21. #define __NR_io_getevents 208
  22. +#endif
  23. +#ifndef __NR_io_submit
  24. #define __NR_io_submit 209
  25. +#endif
  26. +#ifndef __NR_io_cancel
  27. #define __NR_io_cancel 210
  28. +#endif
  29. #define __NR_io_pgetevents 333
  30. --- a/harness/main.c
  31. +++ b/harness/main.c
  32. @@ -14,7 +14,7 @@
  33. #if __LP64__ == 0
  34. #if defined(__i386__) || defined(__powerpc__) || defined(__mips__)
  35. #define KERNEL_RW_POINTER ((void *)0xc0010000)
  36. -#elif defined(__arm__) || defined(__m68k__) || defined(__s390__) || defined(__sh__)
  37. +#elif defined(__arm__) || defined(__m68k__) || defined(__s390__) || defined(__sh__) || defined(__x86_64__)
  38. #define KERNEL_RW_POINTER ((void *)0x00010000)
  39. #elif defined(__hppa__)
  40. #define KERNEL_RW_POINTER ((void *)0x10100000)