From: Wolfgang Denk Date: Fri, 18 Apr 2008 06:14:13 +0200 Subject: [U-Boot-Users] [PATCH] Move init_sequence table into code. In-Reply-To: Your message of "Tue, 15 Apr 2008 08:40:21 +0200." <1208241621.5911.32.camel@gentoo-jocke.transmode.se> Message-ID: <20080418041413.02A8F248A0@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1208241621.5911.32.camel@gentoo-jocke.transmode.se> you wrote: > > It is not going to be a walk in the park :) The big remaining part > is string literals while still in flash, not sure how to solve these > yet. > > > > > > > The original idea of having such a list of funtion pointers which > > > > just get executed one after another was to be able to wrap this into > > > > some "#ifndef CONFIG_INIT_SEQUENCE" and use this to allow for board- > > > > specific init sequences by just adding a #define with the needed list > > > > of functions to the board config files. > > > > > > You can do that with weak functions too. Just make all the functions > > > weak, then a board can overide with its own function. > > > > That would not, for example, to allow to change the sequence - say > > one board needs to initialize PCI very early, but another one very > > late. > > True, but as no one even uses this code ATM, it can't be a big deal. OK. Well, this is not a bug fix, but a (more or less invasive) change to basic infrastructure. I will not add this so shortly before a release. Please rebase and resubmit when the next merge window is open. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "You ain't experienced..." "Well, nor are you." "That's true. But the point is ... the point is ... the point is we've been not experienced for a lot longer than you. We've got a lot of experience of not having any experience." - Terry Pratchett, _Witches Abroad_