ucontext.h 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef _ASM_POWERPC_UCONTEXT_H
  2. #define _ASM_POWERPC_UCONTEXT_H
  3. #ifdef __powerpc64__
  4. #include <asm/sigcontext.h>
  5. #else
  6. #include <asm/elf.h>
  7. #endif
  8. #include <asm/signal.h>
  9. #ifndef __powerpc64__
  10. struct mcontext {
  11. elf_gregset_t mc_gregs;
  12. elf_fpregset_t mc_fregs;
  13. unsigned long mc_pad[2];
  14. elf_vrregset_t mc_vregs __attribute__((__aligned__(16)));
  15. };
  16. #endif
  17. struct ucontext {
  18. unsigned long uc_flags;
  19. struct ucontext __user *uc_link;
  20. stack_t uc_stack;
  21. #ifndef __powerpc64__
  22. int uc_pad[7];
  23. struct mcontext __user *uc_regs;/* points to uc_mcontext field */
  24. #endif
  25. sigset_t uc_sigmask;
  26. /* glibc has 1024-bit signal masks, ours are 64-bit */
  27. #ifdef __powerpc64__
  28. sigset_t __unused[15]; /* Allow for uc_sigmask growth */
  29. struct sigcontext uc_mcontext; /* last for extensibility */
  30. #else
  31. int uc_maskext[30];
  32. int uc_pad2[3];
  33. struct mcontext uc_mcontext;
  34. #endif
  35. };
  36. #endif /* _ASM_POWERPC_UCONTEXT_H */