]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Changes to MI Linux emulation code necessary to run 32-bit Linux binaries
authortjr <tjr@FreeBSD.org>
Mon, 16 Aug 2004 07:28:16 +0000 (07:28 +0000)
committertjr <tjr@FreeBSD.org>
Mon, 16 Aug 2004 07:28:16 +0000 (07:28 +0000)
commit6d0528abdfecb0a45eec1ee51b594803b1e11866
tree8df9260c749ffef486077cca195f2e786112fc5d
parente6930a385cee9ccad60b87c385ea268f880443c3
Changes to MI Linux emulation code necessary to run 32-bit Linux binaries
on AMD64, and the general case where the emulated platform has different
size pointers than we use natively:
- declare certain structure members as l_uintptr_t and use the new PTRIN
  and PTROUT macros to convert to and from native pointers.
- declare some structures __packed on amd64 when the layout would differ
  from that used on i386.
- include <machine/../linux32/linux.h> instead of <machine/../linux/linux.h>
  if compiling with COMPAT_LINUX32. This will need to be revisited before
  32-bit and 64-bit Linux emulation support can coexist in the same kernel.
- other small scattered changes.

This should be a no-op on i386 and Alpha.
12 files changed:
sys/compat/linux/linux_file.c
sys/compat/linux/linux_getcwd.c
sys/compat/linux/linux_ioctl.c
sys/compat/linux/linux_ipc.c
sys/compat/linux/linux_ipc.h
sys/compat/linux/linux_mib.c
sys/compat/linux/linux_misc.c
sys/compat/linux/linux_signal.c
sys/compat/linux/linux_socket.c
sys/compat/linux/linux_stats.c
sys/compat/linux/linux_sysctl.c
sys/compat/linux/linux_uid16.c