x86: Move work-around out of cpu_jump_to_64bit_uboot()
authorSimon Glass <sjg@chromium.org>
Fri, 1 May 2020 03:21:41 +0000 (21:21 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 4 May 2020 07:28:28 +0000 (15:28 +0800)
commit37897c4073b408c6e0ea7faa4062b4e6876e9659
treefcde40923cfcf233d25bc091eb01e65123c02308
parentc2018cdd717732f3fc4b2bb9005d8c2e73088762
x86: Move work-around out of cpu_jump_to_64bit_uboot()

At present this function copies U-Boot from the last 1MB of ROM. This is
not the right way to do it. Instead, the binman symbol should provide the
location.

But in any case the code should live in the caller,
spl_board_load_image(), so that the 64-bit jump function can be used
elsewhere. Move it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/i386/cpu.c
arch/x86/lib/spl.c