[U-Boot-Users] Generic ARM Error with respect to usage of r8 in start.S's.

Woodruff, Richard r-woodruff2 at ti.com
Tue Jun 24 21:06:29 CEST 2003


> 
> What is it you don't see? Why we reserve R8 for global data?
> 

The u-boot for ARM code defines and uses global data which is not referenced
using r8 (can be seen by all).  The code as currently generated only uses r8
to access into the bd_info structure and its members.  As it is, the bd_info
structure is allocated on the C stack in start_armboot(), there is nothing
special about the sdram which its allocated in.  The structure could have as
easily been defined as a global above, just like flash_info[] or any other
structure is.  There is no selective relocation...it don't really use C code
features until it has a stack.

Yes the flexibility to do different things is there which is good,
unfortunately the leaving of expansion hooks which break the existing code
somewhat defeats its usefulness.

Regards,

Richard W.




More information about the U-Boot mailing list