From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graeme Russ Date: Mon, 15 Nov 2010 06:43:41 +1100 Subject: [U-Boot] RFC: Aligning arch initialisation sequences In-Reply-To: <4CDFB841.9050708@gmail.com> References: <4CD67A22.9040802@gmail.com> <201011091835.38581.vapier@gentoo.org> <4CDE1107.80108@gmail.com> <4CDE30CF.9010509@emk-elektronik.de> <20101113081712.C5D85150ADD@gemini.denx.de> <4CDF04A8.4050802@emk-elektronik.de> <20101113215302.6BEA3CEA55B@gemini.denx.de> <4CDF137E.2000902@emk-elektronik.de> <20101113224554.64D72CEA55B@gemini.denx.de> <4CDF15BB.1090107@emk-elektronik.de> <20101114000758.51B6ED302CB@gemini.denx.de> <4CDF2C8B.3060401@gmail.com> <20101114003501.82985CEA55B@gemini.denx.de> <4CDF36E3.7060505@gmail.com> <20101114090416.E560814EA7E@gemini.denx.de> <4CDFB841.9050708@gmail.com> Message-ID: <4CE03BED.5090704@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 14/11/10 21:21, Graeme Russ wrote: > On 14/11/10 20:04, Wolfgang Denk wrote: >> Dear Graeme Russ, >> >> In message <4CDF36E3.7060505@gmail.com> you wrote: >>> > Why don't we just change board_init_f(ulong bootflag) to board_init_f(gd_t > *gd)? avr would need a slight mod to add board_type to gd_t. m68k and sparc > would need similar to add bootflag > > So start.S would calculate the location of the initial global data struct > (in cache, SRAM, Flash etc) and pass this to board_init_f(). A lot of > arches would just pass a constant (arm would pass CONFIG_SYS_INIT_SP_ADDR > for example) > Scratch that - with my proposed x86 changes, I do not need to pass a gd_t* Plus, moving init sequence into board_init_f() before relocation means I loose to ability to 'load anywhere' (which is not a totally disastrous loss) so I don't need load_offset any more. So I can still pass bootflag for warm/cold boot indication I still think we need to clean-up microblaze, nios2 and sh Regards, Graeme