Date: Fri, 23 Jul 2010 12:26:18 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: jhb@FreeBSD.org Cc: amd64@FreeBSD.org, freebsd-arch@FreeBSD.org Subject: Re: uname -m/-p for compat32 binaries Message-ID: <20100723.122618.750582998550767254.imp@bsdimp.com> In-Reply-To: <201007200907.24715.jhb@freebsd.org> References: <20100719213054.GB2381@deviant.kiev.zoral.com.ua> <201007200907.24715.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <201007200907.24715.jhb@freebsd.org> John Baldwin <jhb@FreeBSD.org> writes: : On Monday, July 19, 2010 5:30:54 pm Kostik Belousov wrote: : > Hi, : > I intend to commit the following change, that makes sysctls : > hw.machine_arch and hw.machine to return "i386" for 32 bit : > binaries run on amd64. In particular, 32 bit uname -m and uname -p : > print "i386", that is good for i386 jails on amd64 kernels. : > : > I find the change very useful for me, but I wonder why such trivial : > modification is not yet done. Can anybody note a possible fallout from : > it ? : : Presumably ia64 and powerpc64 would need a similar change as well? It looks : fine to me. I suspect Y! used the UNAME_* approach as it didn't add yet- : another local diff to maintain in the kernel, and the uname fixes at Y! might : have predated SCTL_MASK32. mips might as well, someday. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100723.122618.750582998550767254.imp>