[U-Boot-Users] [PATCH] API: Optimize signature searching scheme in the glue layer.

Wolfgang Denk wd at denx.de
Mon Aug 4 17:24:39 CEST 2008


In message <48970460.2040701 at semihalf.com> you wrote:
>
> The idea was to discover the proximity of where to look for the API signature
> in run-time and only search within some range around it. This way we'd drop
> static definitions of the search range.

I think this is pretty unreliable.

> The assumption was that global data should be close enough to U-Boot's malloc
> area (where the signature is stored) and this works for us on PPC and ARM. Do
> you see any problems with this approach in general i.e. can it really happen
> that after relocation we end up with global data stored at distant location
> than other U-Boot data?

I don't know exactly what other architectures are doing. In any case,
you try to build logic on some implementation as  it  happens  to  be
right  now,  but  since  this  is  nowhere  an  officially documented
interface - it can change any time without warning. To be  honest,  I
am  not even sure if the GD data get copied to RAM on PowerPC, and if
so, if it's done on all of them.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Put your Nose to the Grindstone!
                 -- Amalgamated Plastic Surgeons and Toolmakers, Ltd.




More information about the U-Boot mailing list