Date: Tue, 05 Apr 2016 18:32:16 -0700 From: John Baldwin <jhb@freebsd.org> To: Baptiste Daroussin <bapt@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r297597 - in head/sys: amd64/linux amd64/linux32 i386/linux Message-ID: <2270129.DEqYKEiVDZ@ralph.baldwin.cx> In-Reply-To: <201604052236.u35ManwQ076790@repo.freebsd.org> References: <201604052236.u35ManwQ076790@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, April 05, 2016 10:36:49 PM Baptiste Daroussin wrote: > Author: bapt > Date: Tue Apr 5 22:36:48 2016 > New Revision: 297597 > URL: https://svnweb.freebsd.org/changeset/base/297597 > > Log: > Add kern.features flags for linux and linux64 modules > > kern.features.linux: 1 meaning linux 32 bits binaries are supported > kern.features.linux64: 1 meaning linux 64 bits binaries are supported > > The goal here is to help 3rd party applications (including ports) to determine > if the host do support linux emulation > > Reviewed by: dchagin > MFC after: 1 week > Relnotes: yes > Differential Revision: D5830 Other parts of the system (e.g. libsysdecode, the various symbols exported by the modules, etc.) use "linux" to mean supporting Linux binaries of the same ABI as the host (so x86-64 on amd64 and i386 on i386) and "linux32" to mean supporting 32-bit Linux binaries on a 64-bit host. Note that we used to have linux.ko on Alpha which was a 64-bit ABI, not 32-bit. It is unfortunate that we called linux32.ko linux.ko, but we shouldn't perpetuate that mistake further IMO. For example, I think if we grow Linux/aarch64 ABI support on FreeBSD/arm64, that should be called 'linux.ko', not 'linux64.ko'. Similarly, Linux/armv6 on FreeBSD/armv6 would also be 'linux.ko'. I would also list the names in the feature description (so Linux/i386, not Linux 32-bit, since Linux/armv6 is a 32-bit binary, but linux.ko on FreeBSD/i386 can't run it). -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2270129.DEqYKEiVDZ>