xref: /freebsd/sys/compat/ia32/ia32_genassym.c (revision 685dc743dc3b5645e34836464128e1c0558b404b)
156ae44c5SDavid E. O'Brien #include <sys/cdefs.h>
2d85631c4SPeter Wemm #include <sys/param.h>
3d85631c4SPeter Wemm #include <sys/assym.h>
4d85631c4SPeter Wemm #include <sys/systm.h>
5d85631c4SPeter Wemm #include <sys/signal.h>
6d85631c4SPeter Wemm 
7c6511aeaSDavid Xu #include <compat/freebsd32/freebsd32_signal.h>
8c639ca93SPeter Wemm #include <compat/ia32/ia32_signal.h>
9d85631c4SPeter Wemm 
10d85631c4SPeter Wemm ASSYM(IA32_SIGF_HANDLER, offsetof(struct ia32_sigframe, sf_ah));
11d85631c4SPeter Wemm ASSYM(IA32_SIGF_UC, offsetof(struct ia32_sigframe, sf_uc));
12d85631c4SPeter Wemm ASSYM(IA32_UC_GS, offsetof(struct ia32_ucontext, uc_mcontext.mc_gs));
13d85631c4SPeter Wemm ASSYM(IA32_UC_FS, offsetof(struct ia32_ucontext, uc_mcontext.mc_fs));
14d85631c4SPeter Wemm ASSYM(IA32_UC_ES, offsetof(struct ia32_ucontext, uc_mcontext.mc_es));
15d85631c4SPeter Wemm ASSYM(IA32_UC_DS, offsetof(struct ia32_ucontext, uc_mcontext.mc_ds));
168a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_EDI, offsetof(struct ia32_ucontext, uc_mcontext.mc_edi));
178a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_ESI, offsetof(struct ia32_ucontext, uc_mcontext.mc_esi));
188a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_EBP, offsetof(struct ia32_ucontext, uc_mcontext.mc_ebp));
198a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_EBX, offsetof(struct ia32_ucontext, uc_mcontext.mc_ebx));
208a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_EDX, offsetof(struct ia32_ucontext, uc_mcontext.mc_edx));
218a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_ECX, offsetof(struct ia32_ucontext, uc_mcontext.mc_ecx));
228a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_EAX, offsetof(struct ia32_ucontext, uc_mcontext.mc_eax));
238a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_EIP, offsetof(struct ia32_ucontext, uc_mcontext.mc_eip));
248a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_CS, offsetof(struct ia32_ucontext, uc_mcontext.mc_cs));
258a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_EFLAGS, offsetof(struct ia32_ucontext, uc_mcontext.mc_eflags));
268a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_ESP, offsetof(struct ia32_ucontext, uc_mcontext.mc_esp));
278a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_SS, offsetof(struct ia32_ucontext, uc_mcontext.mc_ss));
288a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_FSBASE, offsetof(struct ia32_ucontext, uc_mcontext.mc_fsbase));
298a4bd7f8SKonstantin Belousov ASSYM(IA32_UC_GSBASE, offsetof(struct ia32_ucontext, uc_mcontext.mc_gsbase));
308a4bd7f8SKonstantin Belousov #ifdef COMPAT_43
31*bd7630efSJohn Baldwin ASSYM(IA32_SIGF_SC, offsetof(struct ia32_osigframe, sf_siginfo.si_sc));
328a4bd7f8SKonstantin Belousov #endif
33d85631c4SPeter Wemm #ifdef COMPAT_FREEBSD4
34*bd7630efSJohn Baldwin ASSYM(IA32_SIGF_UC4, offsetof(struct ia32_freebsd4_sigframe, sf_uc));
35*bd7630efSJohn Baldwin ASSYM(IA32_UC4_GS, offsetof(struct ia32_freebsd4_ucontext, uc_mcontext.mc_gs));
36*bd7630efSJohn Baldwin ASSYM(IA32_UC4_FS, offsetof(struct ia32_freebsd4_ucontext, uc_mcontext.mc_fs));
37*bd7630efSJohn Baldwin ASSYM(IA32_UC4_ES, offsetof(struct ia32_freebsd4_ucontext, uc_mcontext.mc_es));
38*bd7630efSJohn Baldwin ASSYM(IA32_UC4_DS, offsetof(struct ia32_freebsd4_ucontext, uc_mcontext.mc_ds));
39d85631c4SPeter Wemm #endif
40