setting kernel env variables
John Hay
jhay at meraka.org.za
Wed Jan 31 18:00:42 UTC 2007
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 at meraka.csir.co.za / jhay at FreeBSD.org
More information about the freebsd-arm
mailing list