target_signal.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef SPARC_TARGET_SIGNAL_H
  2. #define SPARC_TARGET_SIGNAL_H
  3. #define TARGET_SIGHUP 1
  4. #define TARGET_SIGINT 2
  5. #define TARGET_SIGQUIT 3
  6. #define TARGET_SIGILL 4
  7. #define TARGET_SIGTRAP 5
  8. #define TARGET_SIGABRT 6
  9. #define TARGET_SIGIOT 6
  10. #define TARGET_SIGSTKFLT 7 /* actually EMT */
  11. #define TARGET_SIGFPE 8
  12. #define TARGET_SIGKILL 9
  13. #define TARGET_SIGBUS 10
  14. #define TARGET_SIGSEGV 11
  15. #define TARGET_SIGSYS 12
  16. #define TARGET_SIGPIPE 13
  17. #define TARGET_SIGALRM 14
  18. #define TARGET_SIGTERM 15
  19. #define TARGET_SIGURG 16
  20. #define TARGET_SIGSTOP 17
  21. #define TARGET_SIGTSTP 18
  22. #define TARGET_SIGCONT 19
  23. #define TARGET_SIGCHLD 20
  24. #define TARGET_SIGTTIN 21
  25. #define TARGET_SIGTTOU 22
  26. #define TARGET_SIGIO 23
  27. #define TARGET_SIGXCPU 24
  28. #define TARGET_SIGXFSZ 25
  29. #define TARGET_SIGVTALRM 26
  30. #define TARGET_SIGPROF 27
  31. #define TARGET_SIGWINCH 28
  32. #define TARGET_SIGPWR 29
  33. #define TARGET_SIGUSR1 30
  34. #define TARGET_SIGUSR2 31
  35. #define TARGET_SIGRTMIN 32
  36. #define TARGET_SIG_BLOCK 0x01 /* for blocking signals */
  37. #define TARGET_SIG_UNBLOCK 0x02 /* for unblocking signals */
  38. #define TARGET_SIG_SETMASK 0x04 /* for setting the signal mask */
  39. /* this struct defines a stack used during syscall handling */
  40. typedef struct target_sigaltstack {
  41. abi_ulong ss_sp;
  42. abi_long ss_flags;
  43. abi_ulong ss_size;
  44. } target_stack_t;
  45. /*
  46. * sigaltstack controls
  47. */
  48. #define TARGET_SS_ONSTACK 1
  49. #define TARGET_SS_DISABLE 2
  50. #define TARGET_SA_NOCLDSTOP 8u
  51. #define TARGET_SA_NOCLDWAIT 0x100u
  52. #define TARGET_SA_SIGINFO 0x200u
  53. #define TARGET_SA_ONSTACK 1u
  54. #define TARGET_SA_RESTART 2u
  55. #define TARGET_SA_NODEFER 0x20u
  56. #define TARGET_SA_RESETHAND 4u
  57. #define TARGET_ARCH_HAS_SA_RESTORER 1
  58. #define TARGET_ARCH_HAS_KA_RESTORER 1
  59. #define TARGET_MINSIGSTKSZ 4096
  60. #define TARGET_SIGSTKSZ 16384
  61. #define TARGET_ARCH_HAS_SETUP_FRAME
  62. #endif /* SPARC_TARGET_SIGNAL_H */