[U-Boot-Users] simple_strtoul overwrites bd_info field
llandre
r&d2 at dave-tech.it
Wed Aug 30 10:38:18 CEST 2006
>> As endp points to one field of the struct bd_info, it gets corrupted. So
>
> Umm.. it should not. endp is the second art when calling
> simple_strtoul(), and "lib_arm/board.c" passes the address of a local
> variable here.
>
>> the problem is about the pointer "e" in function start_armboot that is
>> passed to simple_strtoul. Any idea?
>
> Did you check which address gets passed to simple_strtoul()?
Yes and ...
> Did you check the generated assembler code as I suggested?
... yes. This is how I found out what happens. See the two dumps here
http://www.dave-tech.it/download/misc/zefeer.
Stuct bd_info starts at 0xD1EBFF3C.
--
llandre
DAVE Electronics System House - R&D Department
web: http://www.dave-tech.it
email: r&d2 at dave-tech.it
More information about the U-Boot
mailing list