target_signal.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #ifndef ALPHA_TARGET_SIGNAL_H
  2. #define ALPHA_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_SIGSTKFLT 7 /* actually SIGEMT */
  10. #define TARGET_SIGFPE 8
  11. #define TARGET_SIGKILL 9
  12. #define TARGET_SIGBUS 10
  13. #define TARGET_SIGSEGV 11
  14. #define TARGET_SIGSYS 12
  15. #define TARGET_SIGPIPE 13
  16. #define TARGET_SIGALRM 14
  17. #define TARGET_SIGTERM 15
  18. #define TARGET_SIGURG 16
  19. #define TARGET_SIGSTOP 17
  20. #define TARGET_SIGTSTP 18
  21. #define TARGET_SIGCONT 19
  22. #define TARGET_SIGCHLD 20
  23. #define TARGET_SIGTTIN 21
  24. #define TARGET_SIGTTOU 22
  25. #define TARGET_SIGIO 23
  26. #define TARGET_SIGXCPU 24
  27. #define TARGET_SIGXFSZ 25
  28. #define TARGET_SIGVTALRM 26
  29. #define TARGET_SIGPROF 27
  30. #define TARGET_SIGWINCH 28
  31. #define TARGET_SIGPWR 29 /* actually SIGINFO */
  32. #define TARGET_SIGUSR1 30
  33. #define TARGET_SIGUSR2 31
  34. #define TARGET_SIGRTMIN 32
  35. #define TARGET_SIG_BLOCK 1
  36. #define TARGET_SIG_UNBLOCK 2
  37. #define TARGET_SIG_SETMASK 3
  38. /* this struct defines a stack used during syscall handling */
  39. typedef struct target_sigaltstack {
  40. abi_ulong ss_sp;
  41. int32_t ss_flags;
  42. int32_t dummy;
  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_ONSTACK 0x00000001
  51. #define TARGET_SA_RESTART 0x00000002
  52. #define TARGET_SA_NOCLDSTOP 0x00000004
  53. #define TARGET_SA_NODEFER 0x00000008
  54. #define TARGET_SA_RESETHAND 0x00000010
  55. #define TARGET_SA_NOCLDWAIT 0x00000020 /* not supported yet */
  56. #define TARGET_SA_SIGINFO 0x00000040
  57. #define TARGET_MINSIGSTKSZ 4096
  58. #define TARGET_SIGSTKSZ 16384
  59. /* From <asm/gentrap.h>. */
  60. #define TARGET_GEN_INTOVF -1 /* integer overflow */
  61. #define TARGET_GEN_INTDIV -2 /* integer division by zero */
  62. #define TARGET_GEN_FLTOVF -3 /* fp overflow */
  63. #define TARGET_GEN_FLTDIV -4 /* fp division by zero */
  64. #define TARGET_GEN_FLTUND -5 /* fp underflow */
  65. #define TARGET_GEN_FLTINV -6 /* invalid fp operand */
  66. #define TARGET_GEN_FLTINE -7 /* inexact fp operand */
  67. #define TARGET_GEN_DECOVF -8 /* decimal overflow (for COBOL??) */
  68. #define TARGET_GEN_DECDIV -9 /* decimal division by zero */
  69. #define TARGET_GEN_DECINV -10 /* invalid decimal operand */
  70. #define TARGET_GEN_ROPRAND -11 /* reserved operand */
  71. #define TARGET_GEN_ASSERTERR -12 /* assertion error */
  72. #define TARGET_GEN_NULPTRERR -13 /* null pointer error */
  73. #define TARGET_GEN_STKOVF -14 /* stack overflow */
  74. #define TARGET_GEN_STRLENERR -15 /* string length error */
  75. #define TARGET_GEN_SUBSTRERR -16 /* substring error */
  76. #define TARGET_GEN_RANGERR -17 /* range error */
  77. #define TARGET_GEN_SUBRNG -18
  78. #define TARGET_GEN_SUBRNG1 -19
  79. #define TARGET_GEN_SUBRNG2 -20
  80. #define TARGET_GEN_SUBRNG3 -21
  81. #define TARGET_GEN_SUBRNG4 -22
  82. #define TARGET_GEN_SUBRNG5 -23
  83. #define TARGET_GEN_SUBRNG6 -24
  84. #define TARGET_GEN_SUBRNG7 -25
  85. #define TARGET_ARCH_HAS_SETUP_FRAME
  86. #endif /* ALPHA_TARGET_SIGNAL_H */