From owner-freebsd-mips@FreeBSD.ORG Tue Jul 17 19:37:29 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DF56C16A407 for ; Tue, 17 Jul 2007 19:37:29 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id B8CC513C4A5 for ; Tue, 17 Jul 2007 19:37:29 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 439139E22; Tue, 17 Jul 2007 15:19:48 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 17 Jul 2007 15:19:48 -0400 X-Sasl-enc: 4fkPCwvOpx+7ujaIcEZeGk0ng/M6GcPowkIav6ICk92Q 1184699988 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id D132B1C671; Tue, 17 Jul 2007 15:19:47 -0400 (EDT) Message-ID: <469D1652.60608@incunabulum.net> Date: Tue, 17 Jul 2007 20:19:46 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.4 (X11/20070630) MIME-Version: 1.0 To: Oleksandr Tymoshenko References: <469CBEF1.7090900@univ.kiev.ua> In-Reply-To: <469CBEF1.7090900@univ.kiev.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: FreeBSD/MIPS platforms question X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2007 19:37:30 -0000 Oleksandr Tymoshenko wrote: > Hi! I'm adding ADM5120 support to p4 repo right now and stumbled > upon the routine of setting memory size/timer frequency parameters, > implementations of platform_reset and other functions of platform_ > family. > For instance sentry5 uses CFM, malta and PMC boards utilize yamon and > ADM5120 code gets these parameters as argc, argv of entry point. > I think of moving all platform_XXX and mips_init routine to > platform-related machdep file in platform dir, just like in -arm tree > e.g. > mips32/sentry5/setnty5_machdep.c > mips32/adm5120/adm5120_machdep.c > etc.. > > What's your opinion? > Seems reasonable. Be aware of register arguments in locore being used differently by the various firmware. I think I dealt with this OK, let me know if I missed something. I sent a mail to the gxemul maintainer and he was happy to incorporate my patches for the YAMON sysreqs which real YAMON implementations implement for this stuff. CFE is a far more complete firmware than PMON and is generally more helpful to kernel hackers than PMON is. Sadly I haven't had any more free time to work on Sentry5 since April/May. I have chip docs, but still haven't quite got the PCI bus enumeration right. Cheers... BMS