From owner-freebsd-arm@FreeBSD.ORG Tue Nov 25 22:53:40 2008 Return-Path: Delivered-To: arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B622E106564A for ; Tue, 25 Nov 2008 22:53:40 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 90E418FC12 for ; Tue, 25 Nov 2008 22:53:40 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0KAW00L00STGYT00@smtpauth1.wiscmail.wisc.edu> for arm@FreeBSD.org; Tue, 25 Nov 2008 15:53:40 -0600 (CST) Received: from sark.icecube.wisc.edu ([128.104.34.126]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0KAW00HY8ST6EN30@smtpauth1.wiscmail.wisc.edu>; Tue, 25 Nov 2008 15:53:32 -0600 (CST) Date: Tue, 25 Nov 2008 15:57:34 -0600 From: Nathan Whitehorn In-reply-to: <04BDAB4F-CF02-4CE6-90D8-E03EDC1CC8CC@semihalf.com> To: =?UTF-8?B?UmFmYcWCIEphd29yb3dza2k=?= Message-id: <492C74CE.4090808@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=128.104.34.126 X-Spam-PmxInfo: Server=avs-11, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.11.25.214326, SenderIP=128.104.34.126 References: <20081125.104452.535842403.imp@bsdimp.com> <04BDAB4F-CF02-4CE6-90D8-E03EDC1CC8CC@semihalf.com> User-Agent: Thunderbird 2.0.0.9 (X11/20080211) Cc: arm@FreeBSD.org Subject: Re: Code review request: boards on AT91 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: Tue, 25 Nov 2008 22:53:40 -0000 RafaƂ Jaworowski wrote: > On 2008-11-25, at 18:44, M. Warner Losh wrote: > > >> If anybody wants me to write up where I'm going with this, or answer >> any question, please feel free to ask. Also, comments would be nice. > > I was dreaming once about all-generic initarm() that would have > KOBJ-based dispatcher, but am not sure this wouldn't cause some > chicken-and-egg issues as some parts of the infrastructure might not > be available at such early stages, but didn't investigate this too > close, any thoughts? But anyways, even a simple scheme with common > logic and function ptrs, which each platform variation would implement > their own routines (or use generic), would improve the ARM init code > significantly. I am about to commit a patch in order to provide Open Firmware modularization using KOBJ (coincidentally, this should make supporting FDTs much easier). In order to this, I had to make KOBJ behave itself when invoked almost at the very beginning of the boot process on both PowerPC and SPARC, so you shouldn't have any trouble putting this in very early boot on ARM either once this hits the tree. -Nathan