target_syscall.h 994 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef ARM_TARGET_SYSCALL_H
  2. #define ARM_TARGET_SYSCALL_H
  3. /* this struct defines the way the registers are stored on the
  4. stack during a system call. */
  5. /* uregs[0..15] are r0 to r15; uregs[16] is CPSR; uregs[17] is ORIG_r0 */
  6. struct target_pt_regs {
  7. abi_long uregs[18];
  8. };
  9. #define ARM_SYSCALL_BASE 0x900000
  10. #define ARM_THUMB_SYSCALL 0
  11. #define ARM_NR_BASE 0xf0000
  12. #define ARM_NR_breakpoint (ARM_NR_BASE + 1)
  13. #define ARM_NR_cacheflush (ARM_NR_BASE + 2)
  14. #define ARM_NR_set_tls (ARM_NR_BASE + 5)
  15. #define ARM_NR_get_tls (ARM_NR_BASE + 6)
  16. #if TARGET_BIG_ENDIAN
  17. #define UNAME_MACHINE "armv5teb"
  18. #else
  19. #define UNAME_MACHINE "armv5tel"
  20. #endif
  21. #define UNAME_MINIMUM_RELEASE "2.6.32"
  22. #define TARGET_CLONE_BACKWARDS
  23. #define TARGET_MCL_CURRENT 1
  24. #define TARGET_MCL_FUTURE 2
  25. #define TARGET_MCL_ONFAULT 4
  26. #define TARGET_WANT_OLD_SYS_SELECT
  27. #define TARGET_FORCE_SHMLBA
  28. static inline abi_ulong target_shmlba(CPUARMState *env)
  29. {
  30. return 4 * 4096;
  31. }
  32. #endif /* ARM_TARGET_SYSCALL_H */