]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit009a2299e49ec4e72927d527e9bb1a9d3f3388a0
treefcde40923cfcf233d25bc091eb01e65123c02308
parent501c7171477c952b272d064d8ac2ae4978e1d5ab
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