linux_genassym.c 1.3 KB

123456789101112131415161718192021222324252627282930
  1. #include <sys/param.h>
  2. #include <sys/systm.h>
  3. #include <sys/assym.h>
  4. #include <i386/linux/linux.h>
  5. #include <compat/linux/linux_mib.h>
  6. #include <x86/linux/linux_x86_sigframe.h>
  7. ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
  8. ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_uc));
  9. ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext));
  10. ASSYM(L_SC_GS, offsetof(struct l_sigcontext, sc_gs));
  11. ASSYM(L_SC_FS, offsetof(struct l_sigcontext, sc_fs));
  12. ASSYM(L_SC_ES, offsetof(struct l_sigcontext, sc_es));
  13. ASSYM(L_SC_DS, offsetof(struct l_sigcontext, sc_ds));
  14. ASSYM(L_SC_CS, offsetof(struct l_sigcontext, sc_cs));
  15. ASSYM(L_SC_SS, offsetof(struct l_sigcontext, sc_ss));
  16. ASSYM(L_SC_EFLAGS, offsetof(struct l_sigcontext, sc_eflags));
  17. ASSYM(L_SC_EDI, offsetof(struct l_sigcontext, sc_edi));
  18. ASSYM(L_SC_ESI, offsetof(struct l_sigcontext, sc_esi));
  19. ASSYM(L_SC_EBP, offsetof(struct l_sigcontext, sc_ebp));
  20. ASSYM(L_SC_EBX, offsetof(struct l_sigcontext, sc_ebx));
  21. ASSYM(L_SC_EDX, offsetof(struct l_sigcontext, sc_edx));
  22. ASSYM(L_SC_ECX, offsetof(struct l_sigcontext, sc_ecx));
  23. ASSYM(L_SC_EAX, offsetof(struct l_sigcontext, sc_eax));
  24. ASSYM(L_SC_EIP, offsetof(struct l_sigcontext, sc_eip));
  25. ASSYM(L_SC_ESP, offsetof(struct l_sigcontext, sc_esp_at_signal));
  26. ASSYM(LINUX_VERSION_CODE, LINUX_VERSION_CODE);