target_signal.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef HPPA_TARGET_SIGNAL_H
  2. #define HPPA_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
  11. #define TARGET_SIGFPE 8
  12. #define TARGET_SIGKILL 9
  13. #define TARGET_SIGBUS 10
  14. #define TARGET_SIGSEGV 11
  15. #define TARGET_SIGXCPU 12
  16. #define TARGET_SIGPIPE 13
  17. #define TARGET_SIGALRM 14
  18. #define TARGET_SIGTERM 15
  19. #define TARGET_SIGUSR1 16
  20. #define TARGET_SIGUSR2 17
  21. #define TARGET_SIGCHLD 18
  22. #define TARGET_SIGPWR 19
  23. #define TARGET_SIGVTALRM 20
  24. #define TARGET_SIGPROF 21
  25. #define TARGET_SIGIO 22
  26. #define TARGET_SIGPOLL TARGET_SIGIO
  27. #define TARGET_SIGWINCH 23
  28. #define TARGET_SIGSTOP 24
  29. #define TARGET_SIGTSTP 25
  30. #define TARGET_SIGCONT 26
  31. #define TARGET_SIGTTIN 27
  32. #define TARGET_SIGTTOU 28
  33. #define TARGET_SIGURG 29
  34. #define TARGET_SIGXFSZ 30
  35. #define TARGET_SIGSYS 31
  36. #define TARGET_SIGRTMIN 32
  37. #define TARGET_SIG_BLOCK 0
  38. #define TARGET_SIG_UNBLOCK 1
  39. #define TARGET_SIG_SETMASK 2
  40. /* this struct defines a stack used during syscall handling */
  41. typedef struct target_sigaltstack {
  42. abi_ulong ss_sp;
  43. abi_int ss_flags;
  44. abi_ulong ss_size;
  45. } target_stack_t;
  46. /*
  47. * sigaltstack controls
  48. */
  49. #define TARGET_SS_ONSTACK 1
  50. #define TARGET_SS_DISABLE 2
  51. #define TARGET_SA_ONSTACK 0x00000001
  52. #define TARGET_SA_RESETHAND 0x00000004
  53. #define TARGET_SA_NOCLDSTOP 0x00000008
  54. #define TARGET_SA_SIGINFO 0x00000010
  55. #define TARGET_SA_NODEFER 0x00000020
  56. #define TARGET_SA_RESTART 0x00000040
  57. #define TARGET_SA_NOCLDWAIT 0x00000080
  58. #define TARGET_MINSIGSTKSZ 2048
  59. /* bit-flags */
  60. #define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */
  61. /* mask for all SS_xxx flags */
  62. #define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM
  63. #define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1
  64. #endif /* HPPA_TARGET_SIGNAL_H */