ucontext.h 632 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASMPPC_UCONTEXT_H
  2. #define _ASMPPC_UCONTEXT_H
  3. #include <asm/elf.h>
  4. #include <asm/signal.h>
  5. struct mcontext {
  6. elf_gregset_t mc_gregs;
  7. elf_fpregset_t mc_fregs;
  8. unsigned long mc_pad[2];
  9. elf_vrregset_t mc_vregs __attribute__((__aligned__(16)));
  10. };
  11. struct ucontext {
  12. unsigned long uc_flags;
  13. struct ucontext __user *uc_link;
  14. stack_t uc_stack;
  15. int uc_pad[7];
  16. struct mcontext __user *uc_regs;/* points to uc_mcontext field */
  17. sigset_t uc_sigmask;
  18. /* glibc has 1024-bit signal masks, ours are 64-bit */
  19. int uc_maskext[30];
  20. int uc_pad2[3];
  21. struct mcontext uc_mcontext;
  22. };
  23. #endif /* !_ASMPPC_UCONTEXT_H */