8a2532c456
with the COMPAT_LINUX32 option. This is largely based on the i386 MD Linux emulations bits, but also builds on the 32-bit FreeBSD and generic IA-32 binary emulation work. Some of this is still a little rough around the edges, and will need to be revisited before 32-bit and 64-bit Linux emulation support can coexist in the same kernel.
18 lines
647 B
C
18 lines
647 B
C
#include <sys/cdefs.h>
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/assym.h>
|
|
#include <sys/systm.h>
|
|
|
|
#include <amd64/linux32/linux.h>
|
|
|
|
ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
|
|
ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
|
|
ASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));
|
|
ASSYM(LINUX_SC_FS, offsetof(struct l_sigcontext, sc_fs));
|
|
ASSYM(LINUX_SC_ES, offsetof(struct l_sigcontext, sc_es));
|
|
ASSYM(LINUX_SC_DS, offsetof(struct l_sigcontext, sc_ds));
|
|
ASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct l_rt_sigframe, sf_handler));
|
|
ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_sc));
|