ucontext.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * S390 version
  3. *
  4. * Derived from "include/asm-i386/ucontext.h"
  5. */
  6. #ifndef _ASM_S390_UCONTEXT_H
  7. #define _ASM_S390_UCONTEXT_H
  8. #define UC_GPRS_HIGH 1 /* uc_mcontext_ext has valid high gprs */
  9. #define UC_VXRS 2 /* uc_mcontext_ext has valid vector regs */
  10. /*
  11. * The struct ucontext_extended describes how the registers are stored
  12. * on a rt signal frame. Please note that the structure is not fixed,
  13. * if new CPU registers are added to the user state the size of the
  14. * struct ucontext_extended will increase.
  15. */
  16. struct ucontext_extended {
  17. unsigned long uc_flags;
  18. struct ucontext *uc_link;
  19. stack_t uc_stack;
  20. _sigregs uc_mcontext;
  21. sigset_t uc_sigmask;
  22. /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */
  23. unsigned char __unused[128 - sizeof(sigset_t)];
  24. _sigregs_ext uc_mcontext_ext;
  25. };
  26. struct ucontext {
  27. unsigned long uc_flags;
  28. struct ucontext *uc_link;
  29. stack_t uc_stack;
  30. _sigregs uc_mcontext;
  31. sigset_t uc_sigmask;
  32. /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */
  33. unsigned char __unused[128 - sizeof(sigset_t)];
  34. };
  35. #endif /* !_ASM_S390_UCONTEXT_H */