summaryrefslogtreecommitdiffstats
path: root/StandaloneMmPkg/Core
diff options
context:
space:
mode:
authorWei6 Xu <wei6.xu@intel.com>2024-05-07 09:13:17 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-08-28 15:25:27 +0000
commit68487b4736291e3f3efc5181e1b13d0b63bffe80 (patch)
treef9af3a985ec973200354b50a4992f24fab54d780 /StandaloneMmPkg/Core
parentdd775aa4d4699440f6f3a1ad7a59e6d9bb6b07c4 (diff)
downloadedk2-68487b4736291e3f3efc5181e1b13d0b63bffe80.tar.gz
StandaloneMmPkg/Core: Switch to MM HobList after MM HostList is ready
Switch to MM HobList as soon as MM HostList is initialized to avoid StandaloneMmCore still using the HobList which is outside of MMRAM. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Sami Mujawar <sami.mujawar@arm.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Signed-off-by: Wei6 Xu <wei6.xu@intel.com>
Diffstat (limited to 'StandaloneMmPkg/Core')
-rw-r--r--StandaloneMmPkg/Core/StandaloneMmCore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.c b/StandaloneMmPkg/Core/StandaloneMmCore.c
index c6f8886750..14e76fa67e 100644
--- a/StandaloneMmPkg/Core/StandaloneMmCore.c
+++ b/StandaloneMmPkg/Core/StandaloneMmCore.c
@@ -703,6 +703,7 @@ StandaloneMmMain (
CopyMem (MmHobStart, HobStart, HobSize);
Status = MmInstallConfigurationTable (&gMmCoreMmst, &gEfiHobListGuid, MmHobStart, HobSize);
ASSERT_EFI_ERROR (Status);
+ gHobList = MmHobStart;
//
// Register notification for EFI_MM_CONFIGURATION_PROTOCOL registration and