siginfo.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Based on <asm-i386/siginfo.h>.
  4. *
  5. * Modified 1998-2002
  6. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  7. */
  8. #ifndef _UAPI_ASM_IA64_SIGINFO_H
  9. #define _UAPI_ASM_IA64_SIGINFO_H
  10. #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
  11. #include <asm-generic/siginfo.h>
  12. #define si_imm _sifields._sigfault._imm /* as per UNIX SysV ABI spec */
  13. #define si_flags _sifields._sigfault._flags
  14. /*
  15. * si_isr is valid for SIGILL, SIGFPE, SIGSEGV, SIGBUS, and SIGTRAP provided that
  16. * si_code is non-zero and __ISR_VALID is set in si_flags.
  17. */
  18. #define si_isr _sifields._sigfault._isr
  19. /*
  20. * Flag values for si_flags:
  21. */
  22. #define __ISR_VALID_BIT 0
  23. #define __ISR_VALID (1 << __ISR_VALID_BIT)
  24. /*
  25. * SIGILL si_codes
  26. */
  27. #define ILL_BADIADDR 9 /* unimplemented instruction address */
  28. #define __ILL_BREAK 10 /* illegal break */
  29. #define __ILL_BNDMOD 11 /* bundle-update (modification) in progress */
  30. #undef NSIGILL
  31. #define NSIGILL 11
  32. /*
  33. * SIGFPE si_codes
  34. */
  35. #ifdef __KERNEL__
  36. #define FPE_FIXME 0 /* Broken dup of SI_USER */
  37. #endif /* __KERNEL__ */
  38. #define __FPE_DECOVF 9 /* decimal overflow */
  39. #define __FPE_DECDIV 10 /* decimal division by zero */
  40. #define __FPE_DECERR 11 /* packed decimal error */
  41. #define __FPE_INVASC 12 /* invalid ASCII digit */
  42. #define __FPE_INVDEC 13 /* invalid decimal digit */
  43. #undef NSIGFPE
  44. #define NSIGFPE 13
  45. /*
  46. * SIGSEGV si_codes
  47. */
  48. #define __SEGV_PSTKOVF 4 /* paragraph stack overflow */
  49. #undef NSIGSEGV
  50. #define NSIGSEGV 4
  51. #undef NSIGTRAP
  52. #define NSIGTRAP 4
  53. #endif /* _UAPI_ASM_IA64_SIGINFO_H */