diff options
author | Dun Tan <dun.tan@intel.com> | 2025-02-20 17:52:31 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-02-24 03:24:08 +0000 |
commit | 1b71ddea4265978de77c7bfe38dbc1fe7a13f61e (patch) | |
tree | 48b3f2a8e5cb0ab6f760a5a7a49c2b4486cbdc12 /MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c | |
parent | 8e92e8761c6305cb13ca0af636e8192aba78b68e (diff) | |
download | edk2-1b71ddea4265978de77c7bfe38dbc1fe7a13f61e.tar.gz |
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>
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbBotPei/PeiUsbLib.c')
0 files changed, 0 insertions, 0 deletions