ucontext_i.sym 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include <inttypes.h>
  2. #include <signal.h>
  3. #include <stddef.h>
  4. #include <sys/ucontext.h>
  5. #include <kernel_rt_sigframe.h>
  6. -- Constants used by the rt_sigprocmask call.
  7. SIG_BLOCK
  8. SIG_SETMASK
  9. _NSIG8 (_NSIG / 8)
  10. -- Offsets of the fields in the kernel rt_sigframe_t structure.
  11. #define rt_sigframe(member) offsetof (kernel_rt_sigframe_t, member)
  12. RT_SIGFRAME_UCONTEXT rt_sigframe (rs_uc)
  13. RT_SIGFRAME_SIZE sizeof (kernel_rt_sigframe_t)
  14. -- Offsets of the fields in the ucontext_t structure.
  15. #define ucontext(member) offsetof (ucontext_t, member)
  16. #define stack(member) ucontext (uc_stack.member)
  17. #define mcontext(member) ucontext (uc_mcontext.member)
  18. UCONTEXT_FLAGS ucontext (uc_flags)
  19. UCONTEXT_LINK ucontext (uc_link)
  20. UCONTEXT_STACK ucontext (uc_stack)
  21. UCONTEXT_MCONTEXT ucontext (uc_mcontext)
  22. UCONTEXT_SIGMASK ucontext (uc_sigmask)
  23. STACK_SP stack (ss_sp)
  24. STACK_SIZE stack (ss_size)
  25. STACK_FLAGS stack (ss_flags)
  26. MCONTEXT_GREGS mcontext (gregs)
  27. MCONTEXT_FPREGS mcontext (fpregs)
  28. MCONTEXT_MDHI mcontext (mdhi)
  29. MCONTEXT_HI1 mcontext (hi1)
  30. MCONTEXT_HI2 mcontext (hi2)
  31. MCONTEXT_HI3 mcontext (hi3)
  32. MCONTEXT_MDLO mcontext (mdlo)
  33. MCONTEXT_LO1 mcontext (lo1)
  34. MCONTEXT_LO2 mcontext (lo2)
  35. MCONTEXT_LO3 mcontext (lo3)
  36. MCONTEXT_PC mcontext (pc)
  37. MCONTEXT_FPC_CSR mcontext (fpc_csr)
  38. MCONTEXT_USED_MATH mcontext (used_math)
  39. MCONTEXT_DSP mcontext (dsp)
  40. UCONTEXT_SIZE sizeof (ucontext_t)