]> git.baikalelectronics.ru Git - kernel.git/commit
efi: efistub: allow allocation alignment larger than EFI_PAGE_SIZE
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 17 Nov 2014 12:46:44 +0000 (13:46 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 12 Jan 2015 08:17:00 +0000 (08:17 +0000)
commit1732aad1cca71a471e8c939d0ba01f7c4b66dad7
tree0ca4f7122012289593bb8cb12eed4d3bbd8ce98e
parentaf448d90e919c07ad5310b21f4b9d891094e6ff1
efi: efistub: allow allocation alignment larger than EFI_PAGE_SIZE

On systems with 64 KB pages, it is preferable for UEFI memory map
entries to be 64 KB aligned multiples of 64 KB, because it relieves
us of having to deal with the residues.
So, if EFI_ALLOC_ALIGN is #define'd by the platform, use it to round
up all memory allocations made.

Acked-by: Matt Fleming <matt.fleming@intel.com>
Acked-by: Borislav Petkov <bp@suse.de>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
drivers/firmware/efi/libstub/efi-stub-helper.c