1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/sys/compat/ia32
Peter Wemm d85631c4ac Add BASIC i386 binary support for the amd64 kernel. This is largely
stolen from the ia64/ia32 code (indeed there was a repocopy), but I've
redone the MD parts and added and fixed a few essential syscalls.  It
is sufficient to run i386 binaries like /bin/ls, /usr/bin/id (dynamic)
and p4.  The ia64 code has not implemented signal delivery, so I had
to do that.

Before you say it, yes, this does need to go in a common place.  But
we're in a freeze at the moment and I didn't want to risk breaking ia64.
I will sort this out after the freeze so that the common code is in a
common place.

On the AMD64 side, this required adding segment selector context switch
support and some other support infrastructure.  The %fs/%gs etc code
is hairy because loading %gs will clobber the kernel's current MSR_GSBASE
setting.  The segment selectors are not used by the kernel, so they're only
changed at context switch time or when changing modes.  This still needs
to be optimized.

Approved by:	re (amd64/* blanket)
2003-05-14 04:10:49 +00:00
..
ia32_genassym.c Add BASIC i386 binary support for the amd64 kernel. This is largely 2003-05-14 04:10:49 +00:00
ia32_signal.h Add BASIC i386 binary support for the amd64 kernel. This is largely 2003-05-14 04:10:49 +00:00
ia32_sigtramp.S Add BASIC i386 binary support for the amd64 kernel. This is largely 2003-05-14 04:10:49 +00:00
ia32_sysvec.c Add BASIC i386 binary support for the amd64 kernel. This is largely 2003-05-14 04:10:49 +00:00
ia32_util.h Add BASIC i386 binary support for the amd64 kernel. This is largely 2003-05-14 04:10:49 +00:00