efi_loader: Move efi_allocate_pool implementation to efi_memory.c
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 9 Oct 2016 20:17:18 +0000 (22:17 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 18 Oct 2016 07:08:07 +0000 (09:08 +0200)
commitead1274b7f9578e346b3cdcb3d9e2002ef8f0e75
tree2bd5c709a3dbbac929d8b056ddfa4141b404a04c
parent991d62fa73a35598a8939a83dd84369168220d35
efi_loader: Move efi_allocate_pool implementation to efi_memory.c

We currently handle efi_allocate_pool() in our boot time service
file. In the following patch, pool allocation will receive additional
internal semantics that we should preserve inside efi_memory.c instead.

As foundation for those changes, split the function into an externally
facing efi_allocate_pool_ext() for use by payloads and an internal helper
efi_allocate_pool() in efi_memory.c that handles the actual allocation.

While at it, change the magic 0xfff / 12 constants to the more obvious
EFI_PAGE_MASK/SHIFT defines.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_loader.h
lib/efi_loader/efi_boottime.c
lib/efi_loader/efi_memory.c