ucontext_powerpc.h 961 B

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