[U-Boot-Users] simple_strtoul overwrites bd_info field

Wolfgang Denk wd at denx.de
Thu Aug 31 14:26:48 CEST 2006


In message <44F6C4EE.1010605 at dave-tech.it> you wrote:
>
> Anyway I found the bug. Since we had to add more fields for DRAM 

Congrats!

> configuration in the struct bd_info (Ep93xx has complex DRAM mapping), 
> its size increased up to 160 bytes and I just forgot to change 
> CFG_GBL_DATA_SIZE accordingly.

Ummm... are you absolutely sure that this information MUST be  stored
in the global data structure? It's size should be kept as small as
possible!

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
        Ordnung ist die Lust der Vernunft,
        aber Unordnung die Wonne der Phantasie         - Paul Claudel




More information about the U-Boot mailing list