x86: Don't copy the cpu_call64() function to a hardcoded address
authorBin Meng <bmeng.cn@gmail.com>
Thu, 31 Jan 2019 16:22:13 +0000 (08:22 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 12 Feb 2019 06:37:16 +0000 (14:37 +0800)
commit916832603762847afcf112152473d305f7c502e3
tree703e64b42e5820705bade09bdd589be683b4fcfb
parentdbb0696ba05b6e201341805e0df0f5095bc43a78
x86: Don't copy the cpu_call64() function to a hardcoded address

Before jumping to 64-bit U-Boot proper, SPL copies the cpu_call64()
function to a hardcoded address 0x3000000. This can have potential
conflicts with application usage. Switch the destination address
to be allocated from the heap to avoid such risk.

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