[U-Boot-Users] Function pointers after relocation

Robin Gilks robin.gilks at tait.co.nz
Tue Jul 15 02:21:44 CEST 2003


Hi Wolfgang

Wolfgang Denk wrote:
> Dear Robin,
> 
> in message <3F03564A.4090807 at tait.co.nz> you wrote:
> 
>>>Which part of the code are you speaking of?
>>
>>Opps - a typo in the example!! I meant to say the pointer env_get_char() 
>>which is initialised to env_get_char_init and remains pointing at the 
>>Flash copy of that function after relocation.
> 
> 
> I  cannot  verify  this  problem.  It  works  fine  for  me  (i.   e.
> env_get_char()  will  be  relocated  correctly to point to the in-RAM
> copy of the function).
> 

Yup - you're quite right :-))

This was a symptom of our incorrect config where CONFIG_MONITOR_LEN was 
incorrectly defined making the code think the environment was embedded 
when it wasn't. Our debugging logic was suffering a Friday afternoon (or 
maybe it was a blond) moment...

I hope to release the MPC866ADS board updates to you this week - just 
cleaning up the diffs against the latest CVS now.

-- 
Robin Gilks
Senior Design Engineer              Phone: (+64)(3) 357 1569
Tait Electronics                          Fax  :  (+64)(3) 359 4632
PO Box 1645 Christchurch        Email : robin.gilks at tait.co.nz
New Zealand





More information about the U-Boot mailing list