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

Aneesh V aneesh at ti.com
Tue May 17 14:16:25 CEST 2011


Hi Wolfgang,

On Tuesday 17 May 2011 04:47 PM, Wolfgang Denk wrote:
> Dear Aneesh V,
>
> In message<4DD24E63.3020006 at 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


More information about the U-Boot mailing list