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

Aneesh V
2011-05-17T12:16:25Z

Hi Wolfgang,

On Tuesday 17 May 2011 04:47 PM, Wolfgang Denk wrote:
> 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 was thinking that it may be faster. More number of registers at
disposal may mean less number of pushes to the stack, right? I am not
sure if this will make a significant difference.

best regards,
Aneesh