Date: Wed, 31 Jan 2007 20:00:40 +0200 From: John Hay <jhay@meraka.org.za> To: Sam Leffler <sam@errno.com> Cc: freebsd-arm@freebsd.org Subject: Re: setting kernel env variables Message-ID: <20070131180040.GA51968@zibbi.meraka.csir.co.za> In-Reply-To: <45C0D07D.5010504@errno.com> References: <20070131060134.GA19344@zibbi.meraka.csir.co.za> <20070131.015655.-432838507.imp@bsdimp.com> <20070131161418.GA47697@zibbi.meraka.csir.co.za> <45C0D07D.5010504@errno.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 31, 2007 at 09:23:09AM -0800, Sam Leffler wrote: > John Hay wrote: > > On Wed, Jan 31, 2007 at 01:56:55AM -0700, M. Warner Losh wrote: > >> Have you tried just putting into a hints file? > > > > Yes, but it didn't work. Should it? Are you supposed to be able to set > > TUNABLE_INTs through the hints mechanism? > > Not sure about this or the fix you posted but another option is a > compile-time ath option to override the default countrycode. But the > intent was to use tunables... Well I just copied it from i386. i386/i386/machdep.c line 2071+ looks like this: ################## if (envmode == 1) kern_envp = static_env; else if (bootinfo.bi_envp) kern_envp = (caddr_t)bootinfo.bi_envp + KERNBASE; ################## ia64, i386 and pc98 does it this way and amd64, powerpc and sparc use kern_envp = MD_FETCH(kmdp, MODINFOMD_ENVP, char *); John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070131180040.GA51968>