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)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 25 Sep 2013 11:34:38 +0000 (12:34 +0100)
commit4a9f3a7c336a6b0ffeef2523bef93e67b0921163
tree49717fdb090563dc4b10b056f40f0d49d9fe033b
parentc6866d7238d4f26055de8db9c1d5a700e554b2d4
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>
arch/x86/boot/compressed/eboot.c
drivers/firmware/efi/efi-stub-helper.c