143412Snewton/* Derived from: Id: linux_genassym.c,v 1.8 1998/07/29 15:50:41 bde Exp */ 2116145Sobrien#include <sys/cdefs.h> 3116145Sobrien__FBSDID("$FreeBSD: releng/10.3/sys/i386/svr4/svr4_genassym.c 116145 2003-06-10 05:05:54Z obrien $"); 443412Snewton 555627Sbde#include <sys/param.h> 655063Smarcel#include <sys/assym.h> 7102965Sbde#include <sys/systm.h> 843412Snewton 965302Sobrien#include <compat/svr4/svr4_signal.h> 1065302Sobrien#include <compat/svr4/svr4_ucontext.h> 1143412Snewton 1243412Snewton/* XXX: This bit sucks rocks, but gets rid of compiler errors. Maybe I should 1343412Snewton * fix the include files instead... */ 1443412Snewton#define SVR4_MACHDEP_JUST_REGS 1543412Snewton#include <i386/svr4/svr4_machdep.h> 1643412Snewton 1755343SmarcelASSYM(SVR4_SIGF_HANDLER, offsetof(struct svr4_sigframe, sf_handler)); 1855343SmarcelASSYM(SVR4_SIGF_UC, offsetof(struct svr4_sigframe, sf_uc)); 1955343SmarcelASSYM(SVR4_UC_FS, offsetof(struct svr4_ucontext, 2055343Smarcel uc_mcontext.greg[SVR4_X86_FS])); 2155343SmarcelASSYM(SVR4_UC_GS, offsetof(struct svr4_ucontext, 2255343Smarcel uc_mcontext.greg[SVR4_X86_GS])); 2355343SmarcelASSYM(SVR4_UC_EFLAGS, offsetof(struct svr4_ucontext, 2455343Smarcel uc_mcontext.greg[SVR4_X86_EFL])); 25