efi: refactor grub_efi_allocate_pages
authorLeif Lindholm <leif.lindholm@linaro.org>
Thu, 3 Aug 2017 10:04:23 +0000 (11:04 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 7 Aug 2017 16:23:39 +0000 (18:23 +0200)
commitdd5fde2df83c5c03b7ba04d2cc5b7be96de8da7b
treea189447f5c7ec5cdc277970c728e471b8984964a
parente66dc5d71ebfc9763420a76c274e6980d54641c3
efi: refactor grub_efi_allocate_pages

Expose a new function, grub_efi_allocate_pages_real(), making it possible
to specify allocation type and memory type as supported by the UEFI
AllocatePages boot service.

Make grub_efi_allocate_pages() a consumer of the new function,
maintaining its old functionality.

Also delete some left-around #if 1/#else blocks in the affected
functions.

Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
grub-core/kern/efi/mm.c
include/grub/efi/efi.h