target_syscall.h 887 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef SPARC64_TARGET_SYSCALL_H
  2. #define SPARC64_TARGET_SYSCALL_H
  3. #include "../sparc/target_errno.h"
  4. struct target_pt_regs {
  5. abi_ulong u_regs[16];
  6. abi_ulong tstate;
  7. abi_ulong pc;
  8. abi_ulong npc;
  9. abi_ulong y;
  10. abi_ulong fprs;
  11. };
  12. #define UNAME_MACHINE "sparc64"
  13. #define UNAME_MINIMUM_RELEASE "2.6.32"
  14. /* SPARC kernels don't define this in their Kconfig, but they have the
  15. * same ABI as if they did, implemented by sparc-specific code which fishes
  16. * directly in the u_regs() struct for half the parameters in sparc_do_fork()
  17. * and copy_thread().
  18. */
  19. #define TARGET_CLONE_BACKWARDS
  20. #define TARGET_MINSIGSTKSZ 4096
  21. #define TARGET_MLOCKALL_MCL_CURRENT 0x2000
  22. #define TARGET_MLOCKALL_MCL_FUTURE 0x4000
  23. #define TARGET_FORCE_SHMLBA
  24. static inline abi_ulong target_shmlba(CPUSPARCState *env)
  25. {
  26. return MAX(TARGET_PAGE_SIZE, 16 * 1024);
  27. }
  28. #endif /* SPARC64_TARGET_SYSCALL_H */