From owner-freebsd-current Sun Jun 11 11: 9: 0 2000 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 3C71C37B82B; Sun, 11 Jun 2000 11:08:50 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p61-dn01kiryunisiki.gunma.ocn.ne.jp [211.0.245.62]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id DAA04524; Mon, 12 Jun 2000 03:08:35 +0900 (JST) Message-ID: <3943D5E2.A67A111B@newsguy.com> Date: Mon, 12 Jun 2000 03:09:38 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Peter Wemm Cc: Mike Smith , Luoqi Chen , current@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Re: VMware detection code in boot loader References: <20000611174153.DDB611CD7@overcee.netplex.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Wemm wrote: > > > 2) Add the VMware detecting to FICL, as originally suggested. > > Why make #2 vmware specific? Why not set $emulation to native,vmware,bochs, > etc. This is applicable to any platform that may have some sort of emulator. > Putting it in an environment variable has the advantage of having it passed > through to the kernel environment too, so you might be able to use it in > /etc/rc* as well. It wouldn't change the matter of having port-specific code on loader. It is really irrelevant whether that code will be setting an environment variable or returning flag/version. Forth code executed at run-time is an extension of loader. It can call various flag-returning words and set an environment variable accordingly. The only difference is that having C code set the environment variable let us get away from using FICL, but, then, the utility of it is _only_ passing it to the kernel environment, as loader(8) without FICL can do very little based on the content of an environment variable. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org "He is my minion, so he doesn't need a name." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message