target_signal.h 780 B

1234567891011121314151617181920212223242526272829
  1. #ifndef OPENRISC_TARGET_SIGNAL_H
  2. #define OPENRISC_TARGET_SIGNAL_H
  3. /* this struct defines a stack used during syscall handling */
  4. typedef struct target_sigaltstack {
  5. abi_long ss_sp;
  6. abi_int ss_flags;
  7. abi_ulong ss_size;
  8. } target_stack_t;
  9. /* sigaltstack controls */
  10. #define TARGET_SS_ONSTACK 1
  11. #define TARGET_SS_DISABLE 2
  12. #define TARGET_SA_NOCLDSTOP 0x00000001
  13. #define TARGET_SA_NOCLDWAIT 0x00000002
  14. #define TARGET_SA_SIGINFO 0x00000004
  15. #define TARGET_SA_ONSTACK 0x08000000
  16. #define TARGET_SA_RESTART 0x10000000
  17. #define TARGET_SA_NODEFER 0x40000000
  18. #define TARGET_SA_RESETHAND 0x80000000
  19. #define TARGET_MINSIGSTKSZ 2048
  20. #define TARGET_SIGSTKSZ 8192
  21. #include "../generic/signal.h"
  22. #endif /* OPENRISC_TARGET_SIGNAL_H */