[U-Boot] [PATCH v3 50/62] x86: Support jumping from SPL to U-Boot

Bin Meng bmeng.cn at gmail.com
Tue Jan 17 05:20:09 CET 2017


On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass <sjg at chromium.org> wrote:
> Add a rough function to handle jumping from 32-bit SPL to 64-bit U-Boot.
> This still needs work to clean it up.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/cpu/call64.S      |  3 +++
>  arch/x86/cpu/i386/cpu.c    | 65 ++++++++++++++++++++++++++++++++++++++++++++++
>  arch/x86/include/asm/cpu.h |  9 +++++++
>  3 files changed, 77 insertions(+)
>

Fixed the first style issue by removing target64() as it is not needed:

WARNING: externs should be avoided in .c files
#68: FILE: arch/x86/cpu/i386/cpu.c:524:
+       void target64(void);

WARNING: externs should be avoided in .c files
#83: FILE: arch/x86/cpu/i386/cpu.c:539:
+       extern char gdt64[];

Leave the 2nd one in the codes, and

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list