efi: Generalize relocate_kernel() for use by other architectures.
authorRoy Franz <roy.franz@linaro.org>
Sun, 22 Sep 2013 22:45:32 +0000 (15:45 -0700)
committerMark Brown <broonie@linaro.org>
Mon, 16 Jun 2014 20:17:25 +0000 (21:17 +0100)
commit02e9cbd96c39d86a4c7eb39596945bb48ef461fa
treecbe8f9e97aa27d357c4ee25e12ba7e9350001ebe
parent88d149977c231a35d58dccad3b8763b76afa97a9
efi: Generalize relocate_kernel() for use by other architectures.

Rename relocate_kernel() to efi_relocate_kernel(), and take
parameters rather than x86 specific structure.  Add max_addr
argument as for ARM we have some address constraints that we
need to enforce when relocating the kernel.  Add alloc_size
parameter for use by ARM64 which uses an uncompressed kernel,
and needs to allocate space for BSS.

Signed-off-by: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
(cherry picked from commit 4a9f3a7c336a6b0ffeef2523bef93e67b0921163)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/x86/boot/compressed/eboot.c
drivers/firmware/efi/efi-stub-helper.c