target_signal.h 548 B

1234567891011121314151617181920212223242526272829
  1. #ifndef TARGET_SIGNAL_H
  2. #define TARGET_SIGNAL_H
  3. #include "cpu.h"
  4. /* this struct defines a stack used during syscall handling */
  5. typedef struct target_sigaltstack {
  6. abi_long ss_sp;
  7. abi_ulong ss_size;
  8. abi_long ss_flags;
  9. } target_stack_t;
  10. /*
  11. * sigaltstack controls
  12. */
  13. #define TARGET_SS_ONSTACK 1
  14. #define TARGET_SS_DISABLE 2
  15. #define TARGET_MINSIGSTKSZ 2048
  16. #define TARGET_SIGSTKSZ 8192
  17. static inline abi_ulong get_sp_from_cpustate(CPUMIPSState *state)
  18. {
  19. return state->active_tc.gpr[29];
  20. }
  21. #endif /* TARGET_SIGNAL_H */