[U-Boot-Users] PATCH: bi_iic_fast[] initialization relocated to board_init_r()

Tolunay Orkun listmember at orkun.us
Wed Apr 7 18:46:05 CEST 2004


>> > I think you should  rework  this  patch.  At  the  moment,  you  call
>> > getenv() in board_init_f() - but board_init_f() is still running from
>> > flash,  which  means  that we don't have a full C runtime environment
>> > (uninitialized BSS, no writable data, limited stack space) so the use
>> > of getenv() is not allowd in that function. You  may  use  getenv_r()
>> > instead.
>>
>> I can convert it to use getenv_r() or I think it would be better to move
>> that section dealing with initialization of bi_iic_fast[] flags to
>> board_init_r(). bi_iic_fast[] is not used by u-boot itself. It is passed
>> to Linux.
>
> Then move it to board_init_r(), please.

Attached patch fixes this.

Changelog:

  - Relocate initialization of bi_iic_fast[]
    from board_init_f() to board_init_r()

Best regards,
Tolunay Orkun
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bi_iic_fast_reloc.patch.gz
Type: application/x-gzip
Size: 719 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040407/fb6f3326/attachment.bin 


More information about the U-Boot mailing list