[U-Boot] [PATCH] common/board_f: move board_init_f_mem() from #else CONFIG_X86

Simon Glass sjg at chromium.org
Sat Mar 28 16:14:22 CET 2015


On 27 March 2015 at 01:07, Alexey Brodkin <Alexey.Brodkin at synopsys.com> wrote:
> Hi Simon, Tom,
>
> On Tue, 2015-03-24 at 11:12 +0300, Alexey Brodkin wrote:
>> Purpose of this change is to make it possible to re-use code currently
>> used on X86 solely for other architectures. For example:
>>  * init_sequence_f_r
>>  * board_init_f_r
>>
>> Even though board_init_f_mem() has nothing to do with any particular
>> architecture it won't work (at least in current implementation) for X86.
>>
>> This is because on X86 "gd" is an alias to function get_fs_gd_ptr(),
>> thus we cannot assign anything to it.
>>
>> So this change separates selection of board_init_f_mem() from X86 while
>> keeping it disabled for X86 still.
>>
>> Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
>> Cc: Simon Glass <sjg at chromium.org>
>> Cc: Tom Rini <trini at konsulko.com>
>
> If there're no objections on this one could it be applied?
>
> This patch is a pre-requisite for ARC-update series, in particular for
> this patch - http://patchwork.ozlabs.org/patch/450963/

Acked-by: Simon Glass <sjg at chromium.org>

Feel free to pick it up via the ARC tree too.

- Simon


More information about the U-Boot mailing list