[U-Boot] [PATCH] ARM: allocate pre-relocation global_data on pre-relocation stack

Reinhard Meyer u-boot at emk-elektronik.de
Sun Nov 28 06:36:38 CET 2010


Dear Albert ARIBAUD,
> Le 18/11/2010 21:43, Reinhard Meyer a écrit :
>
>>> I'm probably lagging behind... How do you ensure that the pre-relocation GD content ends up in the post-relocation GD (which cannot be that stack variable since the stack is going to be somewhere else)?
>>
>> Check the function yourself:
>> there is a memcpy of this GD to an area in SDRAM at the end...
>
> Apologies: I *was* indeed lagging behind.

So what is going to happen about this patch?
I see no objections or complaints anywhere, but I see boards
getting fixed using GENERATED_GBL_DATA_SIZE.

Note that using GENERATED_GBL_DATA_SIZE does not break with my patch,
it just wastes space.

Best Regards,
Reinhard


More information about the U-Boot mailing list