audk/ArmPlatformPkg/MemoryInitPei
Ard Biesheuvel 44d2e8d7ca ArmPlatformPkg/MemoryInitPeiLib: reserve rather than remove FV memory
Instead of completely removing the memory occupied by the primary PrePi
FV from the memory map, thereby making it inaccessible to the OS, mark
it as boot services data. This will ensure that the memory is left
untouched by the firmware, but will release it to the OS when it calls
ExitBootServices().

Note that for reasons that are not entirely clear, this only works as
desired if the memory allocation HOB and the resource descriptor HOB
that describe the region are identical in offset and size, and so we
still need to iterate over the descriptors and split them up.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-02-28 16:10:58 +00:00
..
MemoryInitPeiLib.c ArmPlatformPkg/MemoryInitPeiLib: reserve rather than remove FV memory 2018-02-28 16:10:58 +00:00
MemoryInitPeiLib.inf
MemoryInitPeim.c ArmPlatformPkg: remove ArmPlatformInitializeSystemMemory 2017-11-30 16:08:33 +00:00
MemoryInitPeim.inf ArmPlatformPkg: remove ArmPlatformInitializeSystemMemory 2017-11-30 16:08:33 +00:00