MdePkg/DxeServicesLib: introduce AllocatePeiAccessiblePages routine
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 24 May 2018 08:44:01 +0000 (10:44 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 29 May 2018 08:47:18 +0000 (10:47 +0200)
commita40e0b7aa9180313611525e5a9c05daaf9120713
tree7146d11ec8da92898bf1a18a869197e080d7cd8b
parent97399f2d6ffc4c35a8226d06cd92081a4d4e9628
MdePkg/DxeServicesLib: introduce AllocatePeiAccessiblePages routine

Add a routine to DxeServicesLib that abstracts the allocation of memory
that should be accessible by PEI after resuming from S3. We will use it
to replace open coded implementations that limit the address to < 4 GB,
which may not be possible on non-Intel systems that have no 32-bit
addressable memory at all.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Include/Library/DxeServicesLib.h
MdePkg/Library/DxeServicesLib/Allocate.c [new file with mode: 0644]
MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
MdePkg/Library/DxeServicesLib/X64/Allocate.c [new file with mode: 0644]