site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Y2T5oafJVSgGvT2FCe1MtJSoOZ8iVK+vDpWaH+7JnRg=; b=spfneVbQ99zxLyhGBWr2xXWFpkFy/vSDXqBKsVfBSNfztxQikd/tYjnjVnopiH6kes7HSn+NGgrR7QIaF9rYIhPC2UL+oTNuH2m9UgMCKSZ22O8ni7IxSgc+LcH8RYxf+p6ewmbVtM7nz4wFXfxkSdgMqYkzFLVcs1lrTgfge+0= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kBBp0blMrX/CSGt7aMl21Gvvw1OxDY5czoXrArTXF9HiMC6ESyh6tNdHOb9K1LCUBHlhMdF9heXR2a5LHJ0c0O9LOpSrFl6zDe/rwAJCECInRsrhFeUXnioKL7Wd8ezz2gm+QbR2r59A66TAf19MPmBwEeaay43mikJHHuprv8Q= no it's really not at boottime imagine in a syslog loaded mach-o index 0 foo prog array {x86_64,i386} (mach-o [index 0 x86_64 code index 1 i386 code]) my question was related to runtime, if I could force to load i386 code rather than x86_64 code section I don't care to get the process, I wanted to know which section has been loaded yes and sure I know well everything that you try to express but it's realy out the box of my question Best Regards On Sat, Mar 8, 2008 at 11:54 AM, David Elliott <dfe@tgwbd.org> wrote:
Per-process: arch -i386 foobar
System-wide: On x86-64 you can add -legacy to the boot-args nvram property (using the nvram command-line tool). That will force the kernel to run in i386 mode instead of x86-64 mode so you will not be able to run 64-bit programs at all and everything including the kernel itself will run in true i386 mode.
In this situation, trying something like arch -x86_64 foobar will totally fail since the CPU will not ever be in 64-bit mode. If that's what you want, you can have it. It's also useful if you are trying to run Darwin on certain CPUs like late-model Pentium 4 that pass the startup checks in tsc.c, or at least did until Leopard's xnu removed the check for CPU family 0xf (extended), but fail later on in kernel startup because of a missing bcopy 64 commpage routine (which requires Supplemental SSE3 which is not present on Pentium 4).
-Dave
On Mar 8, 2008, at 2:16 PM, mm w wrote:
ha thank you, something that maches 8) my question was not related to gcc or compilation time
it was related to runtime, so there is no way to force the OS to run in i386 mode, but as far I know, the mach-o loader is able to deal with it, i just wanted to know if it was possible to force it.
thank you for your answers
On Sat, Mar 8, 2008 at 11:11 AM, Shantonu Sen <ssen@apple.com> wrote:
System-wide? No. Not without recompiling your kernel.
Shantonu
Sent from my MacBook
On Mar 8, 2008, at 11:08 AM, mm w wrote:
So, to make simple, imagine a wonderful OS running on 32 extend 64 arch, all the sources are fat i386/ x86_64 is it to possible to influence the prefered mode
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/ssen %40apple.com
This email sent to ssen@apple.com
-- -mmw _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/dfe%40tgwbd.org
This email sent to dfe@tgwbd.org
-- -mmw _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com