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.

42 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,5 +1,15 @@
  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. --- a/harness/main.c
  30. +++ b/harness/main.c
  31. @@ -14,7 +14,7 @@
  32. #if __LP64__ == 0
  33. #if defined(__i386__) || defined(__powerpc__) || defined(__mips__)
  34. #define KERNEL_RW_POINTER ((void *)0xc0010000)
  35. -#elif defined(__arm__) || defined(__m68k__) || defined(__s390__) || defined(__sh__)
  36. +#elif defined(__arm__) || defined(__m68k__) || defined(__s390__) || defined(__sh__) || defined(__x86_64__)
  37. #define KERNEL_RW_POINTER ((void *)0x00010000)
  38. #elif defined(__hppa__)
  39. #define KERNEL_RW_POINTER ((void *)0x10100000)