Skip to content
Commit cf2b0f10 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

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: default avatarMatt Fleming <matt.fleming@intel.com>
Acked-by: default avatarBorislav Petkov <bp@suse.de>
Tested-by: default avatarLeif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
parent 7bb68410
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment