]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): Add compat.linux32.emulate_i386 knob.
authorDmitry Chagin <dchagin@FreeBSD.org>
Thu, 31 Mar 2022 18:01:09 +0000 (21:01 +0300)
committerDmitry Chagin <dchagin@FreeBSD.org>
Fri, 17 Jun 2022 19:33:47 +0000 (22:33 +0300)
commit82fa7c3b83d841fb3e9071c41d39e92b8adb021c
treeffffa1c86cce4805697ff83758836090ea53e654
parent71d5b525f5d2a3d7f99ceb4540f8512c491dd003
linux(4): Add compat.linux32.emulate_i386 knob.

Historically 32-bit Linuxulator under amd64 emulated the real i386
behavior. Since 3d8dd983 the old i386 Linux world can't be used under
amd64 Linuxulator as it don't know anything about amd64 machine (which
is returned now by newuname() syscall). So, add a knob to allow to swith
the behavior and use i386 Linux binaries on amd64.
Set knob to the new behavior as I think this is common to the modern
Linux distros.

Reviewed by: Pau Amma (doc), emaste
Differential revision: https://reviews.freebsd.org/D34708
MFC after: 2 weeks

(cherry picked from commit d5dc757e84d8dc1db987f3a17052e32621d6ea87)
share/man/man4/linux.4
sys/amd64/linux32/linux.h
sys/amd64/linux32/linux32_sysvec.c
sys/compat/linux/linux_misc.c