target_syscall.h 810 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef MIPS_TARGET_SYSCALL_H
  2. #define MIPS_TARGET_SYSCALL_H
  3. /* this struct defines the way the registers are stored on the
  4. stack during a system call. */
  5. struct target_pt_regs {
  6. /* Pad bytes for argument save space on the stack. */
  7. abi_ulong pad0[6];
  8. /* Saved main processor registers. */
  9. abi_ulong regs[32];
  10. /* Saved special registers. */
  11. abi_ulong cp0_status;
  12. abi_ulong lo;
  13. abi_ulong hi;
  14. abi_ulong cp0_badvaddr;
  15. abi_ulong cp0_cause;
  16. abi_ulong cp0_epc;
  17. };
  18. #define UNAME_MACHINE "mips"
  19. #define UNAME_MINIMUM_RELEASE "2.6.32"
  20. #define TARGET_CLONE_BACKWARDS
  21. #define TARGET_MCL_CURRENT 1
  22. #define TARGET_MCL_FUTURE 2
  23. #define TARGET_MCL_ONFAULT 4
  24. #define TARGET_FORCE_SHMLBA
  25. static inline abi_ulong target_shmlba(CPUMIPSState *env)
  26. {
  27. return 0x40000;
  28. }
  29. #endif /* MIPS_TARGET_SYSCALL_H */