1118031Sobrien#include <sys/cdefs.h> 2118031Sobrien__FBSDID("$FreeBSD: releng/10.2/sys/compat/ia32/ia32_genassym.c 220238 2011-04-01 11:16:29Z kib $"); 3114987Speter 4114987Speter#include "opt_compat.h" 5114987Speter 6114987Speter#include <sys/param.h> 7114987Speter#include <sys/assym.h> 8114987Speter#include <sys/systm.h> 9114987Speter#include <sys/signal.h> 10114987Speter 11163018Sdavidxu#include <compat/freebsd32/freebsd32_signal.h> 12119334Speter#include <compat/ia32/ia32_signal.h> 13114987Speter 14114987SpeterASSYM(IA32_SIGF_HANDLER, offsetof(struct ia32_sigframe, sf_ah)); 15114987SpeterASSYM(IA32_SIGF_UC, offsetof(struct ia32_sigframe, sf_uc)); 16220238Skib#ifdef COMPAT_43 17220238SkibASSYM(IA32_SIGF_SC, offsetof(struct ia32_sigframe3, sf_siginfo.si_sc)); 18220238Skib#endif 19114987SpeterASSYM(IA32_UC_GS, offsetof(struct ia32_ucontext, uc_mcontext.mc_gs)); 20114987SpeterASSYM(IA32_UC_FS, offsetof(struct ia32_ucontext, uc_mcontext.mc_fs)); 21114987SpeterASSYM(IA32_UC_ES, offsetof(struct ia32_ucontext, uc_mcontext.mc_es)); 22114987SpeterASSYM(IA32_UC_DS, offsetof(struct ia32_ucontext, uc_mcontext.mc_ds)); 23114987Speter#ifdef COMPAT_FREEBSD4 24126090SpeterASSYM(IA32_SIGF_UC4, offsetof(struct ia32_sigframe4, sf_uc)); 25114987SpeterASSYM(IA32_UC4_GS, offsetof(struct ia32_ucontext4, uc_mcontext.mc_gs)); 26114987SpeterASSYM(IA32_UC4_FS, offsetof(struct ia32_ucontext4, uc_mcontext.mc_fs)); 27114987SpeterASSYM(IA32_UC4_ES, offsetof(struct ia32_ucontext4, uc_mcontext.mc_es)); 28114987SpeterASSYM(IA32_UC4_DS, offsetof(struct ia32_ucontext4, uc_mcontext.mc_ds)); 29114987Speter#endif 30