MdeModulePkg/FirmwarePerformanceDataTableDxe: use AllocatePeiAccessiblePages
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 22 May 2018 13:37:58 +0000 (15:37 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 29 May 2018 08:47:18 +0000 (10:47 +0200)
commit65e984cd8ad8ee0999f8b360372db647f031c806
treefddf548be4cdf9fdb86f5b22e44656d468d6cf3a
parentd79d7b58608c49e9bce6102b02db38ded9c52150
MdeModulePkg/FirmwarePerformanceDataTableDxe: use AllocatePeiAccessiblePages

Replace the call to and implementation of the function
FpdtAllocateReservedMemoryBelow4G() with a call to
AllocatePeiAccessiblePages, which boils down to the same on X64,
but does not crash non-X64 systems that lack memory below 4 GB.

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: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf