]> 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)
commit4a103a872f61d1f9ba7bb704575aa054f4bf077d
tree0ca4f7122012289593bb8cb12eed4d3bbd8ce98e
parent55543d5a88e616d7e9f2b7e3ca0f7926f833bfe8
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