x86: Add support for 64-bit relocation
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 14:03:54 +0000 (07:03 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 6 Feb 2017 03:38:46 +0000 (11:38 +0800)
commitb50b1633c022bd3bac5387ea37cf8bbb474e3d73
treee8dd80ff84ec9f15181e373efacdb35999d793f6
parentdc7e21339e2d386cae31b8a1713274025226b333
x86: Add support for 64-bit relocation

Add a 64-bit relocation function. SPL loads U-Boot into RAM at a fixed
address and runs it. U-Boot then relocates itself to the top of RAM using
this relocation function.

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