]> git.proxmox.com Git - mirror_edk2.git/commit
EmbeddedPkg/PrePiLib: allocate code pages for DxeCore
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 14 Mar 2017 08:01:04 +0000 (08:01 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 14 Mar 2017 20:08:31 +0000 (20:08 +0000)
commit6ac97ad31edbd9c8cdea778f452273974c589bf1
tree1c744104ac2c848afe6d5312e06dd3e56a32e727
parentc03f5b2c42911c6af436beb7bbc4f63dd054fc83
EmbeddedPkg/PrePiLib: allocate code pages for DxeCore

The recently introduced memory protection features inadvertently broke
the boot on all PrePi platforms, because the changes to explicitly use
EfiBootServicesCode for loading the DxeCore PE/COFF image need to be
applied in a different way for PrePi. So add a simple helper function
that sets the type of an allocation to EfiBootServicesCode, and invoke
it to allocate the space for DxeCore.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Library/PrePiLib/PrePi.h
EmbeddedPkg/Library/PrePiLib/PrePiLib.c