
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