[U-Boot] [PATCH v2 06/22] Add generic spl infrastructure

Wolfgang Denk
2011-05-17T11:17:07Z

Dear Aneesh V,

In message <4DD24E63.3020006@ti.com> you wrote:
>
> > But that's not what you are doing. You are not changing the storage
> > of the global data itself, you are changing the storage of the POINTER
> > TO the global data - and this makes no sense to me. The pointer can
> > certainly remain in a register even if the data itself is somewhere
> > else.
>
> Why do we want to waste a register in the entire SPL when global data
> can be accessed directly from .data section?

Because the resulting code is smaller?

I did not measure it on your hardware with your compiler, but IIRC
this was the result on some other processors.

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
It may be that your whole purpose in life is simply to serve as a
warning to others.