edk2/StandaloneMmPkg/Library
Dun Tan 1b71ddea42 StandaloneMmPkg/Core: pass HOB list in MMRAM to library constructor
The commit changes the code to initializes new HOB list in MMRAM
before the ProcessLibraryConstructorList() and pass the MMRAM HOB
list to lib constructor.

Previously, the HOB list in non-MMRAM range is passed to the lib
constructor. Then code in the library constructor would consume
unverified HOB list in non-MMRAM buffer. With this commit, the
HOB validation and memory allocation HOB migration are doned before
the library constructor.

Since the HOB list initialization needs to allocate memory in MMRAM,
we also need to call the MmInitializeMemoryServices() before the HOB
list initialization. Then the duplicated code in the StandaloneMmCore
MemoryAllocationLib can also be removed.

Signed-off-by: Dun Tan <dun.tan@intel.com>
2025-02-24 03:24:08 +00:00
..
FvLib StandaloneMmPkg: CodeQL Fixes. 2024-10-03 07:30:55 +00:00
MmPlatformHobProducerLibNull StandaloneMmPkg: Create null instance for MmPlatformHobProducerLib 2024-08-28 15:25:27 +00:00
SmmLockBoxMmDependency StandaloneMmPkg: Add LockBox Dependency Library 2024-07-31 19:49:24 +00:00
StandaloneMmCoreHobLib StandaloneMm/Library: Remove Hob creation on Arm CoreHob Library 2025-01-17 14:55:42 +00:00
StandaloneMmCoreMemoryAllocationLib StandaloneMmPkg/Core: pass HOB list in MMRAM to library constructor 2025-02-24 03:24:08 +00:00
StandaloneMmExtractGuidedSectionLib StandaloneMmPkg: introduce StandaloneMmExtractGuidedSectionLib 2025-01-17 14:55:42 +00:00
StandaloneMmHobLib StandaloneMmPkg/StandaloneMmHobLib: Remove HOB creation 2023-12-11 03:30:39 +00:00
StandaloneMmMemLib StandaloneMmPkg/MemLib: remove unnecessary check 2024-11-05 08:30:16 +00:00
StandaloneMmMemoryAllocationLib StandaloneMmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
StandaloneMmPeCoffExtraActionLib StandaloneMmPkg: Include correct MmuLib header 2023-06-27 16:40:07 +00:00
VariableMmDependency StandaloneMmPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00