linux_genassym.c 746 B

1234567891011121314151617181920
  1. #include <sys/cdefs.h>
  2. __FBSDID("$FreeBSD$");
  3. #include <sys/param.h>
  4. #include <sys/assym.h>
  5. #include <sys/systm.h>
  6. #include <i386/linux/linux.h>
  7. #include <compat/linux/linux_mib.h>
  8. ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
  9. ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
  10. ASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));
  11. ASSYM(LINUX_SC_EFLAGS, offsetof(struct l_sigcontext, sc_eflags));
  12. ASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct l_rt_sigframe, sf_handler));
  13. ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_sc));
  14. ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext));
  15. ASSYM(LINUX_SC_ESP, offsetof(struct l_sigcontext, sc_esp));
  16. ASSYM(LINUX_VERSION_CODE, LINUX_VERSION_CODE);