summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/i386
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-01 06:21:41 +0300
committerBin Meng <bmeng.cn@gmail.com>2020-05-04 10:28:28 +0300
commit37897c4073b408c6e0ea7faa4062b4e6876e9659 (patch)
treefcde40923cfcf233d25bc091eb01e65123c02308 /arch/x86/cpu/i386
parentc2018cdd717732f3fc4b2bb9005d8c2e73088762 (diff)
downloadu-boot-37897c4073b408c6e0ea7faa4062b4e6876e9659.tar.xz
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>
Diffstat (limited to 'arch/x86/cpu/i386')
-rw-r--r--arch/x86/cpu/i386/cpu.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c
index facd4f58a6..435e50edad 100644
--- a/arch/x86/cpu/i386/cpu.c
+++ b/arch/x86/cpu/i386/cpu.c
@@ -614,16 +614,6 @@ int cpu_jump_to_64bit_uboot(ulong target)
func = (func_t)ptr;
- /*
- * Copy U-Boot from ROM
- * TODO(sjg@chromium.org): Figure out a way to get the text base
- * correctly here, and in the device-tree binman definition.
- *
- * Also consider using FIT so we get the correct image length and
- * parameters.
- */
- memcpy((char *)target, (char *)0xfff00000, 0x100000);
-
/* Jump to U-Boot */
func((ulong)pgtable, 0, (ulong)target);