From owner-freebsd-arm@FreeBSD.ORG Wed Jan 31 18:00:42 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 572C816A400 for ; Wed, 31 Jan 2007 18:00:42 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.freebsd.org (Postfix) with ESMTP id EB84413C48E for ; Wed, 31 Jan 2007 18:00:41 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 2738833CB9; Wed, 31 Jan 2007 20:00:40 +0200 (SAST) Date: Wed, 31 Jan 2007 20:00:40 +0200 From: John Hay To: Sam Leffler Message-ID: <20070131180040.GA51968@zibbi.meraka.csir.co.za> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45C0D07D.5010504@errno.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-arm@freebsd.org Subject: Re: setting kernel env variables X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2007 18:00:42 -0000 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