Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 1b71ddea4265978de77c7bfe38dbc1fe7a13f61e
      
https://github.com/tianocore/edk2/commit/1b71ddea4265978de77c7bfe38dbc1fe7a13f61e
  Author: Dun Tan <dun....@intel.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    M StandaloneMmPkg/Core/StandaloneMmCore.c
    M StandaloneMmPkg/Core/StandaloneMmCore.h
    M StandaloneMmPkg/Core/StandaloneMmCore.inf
    M 
StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.c
    M 
StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
    R 
StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationServices.h

  Log Message:
  -----------
  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....@intel.com>


  Commit: e2bb5b530bb584b0ce8b3a08f33e01bd4f36a48d
      
https://github.com/tianocore/edk2/commit/e2bb5b530bb584b0ce8b3a08f33e01bd4f36a48d
  Author: Dun Tan <dun....@intel.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    M StandaloneMmPkg/Core/StandaloneMmCore.c

  Log Message:
  -----------
  StandaloneMmPkg/Core: dump HOB list in MMRAM

This commit is to dump finaled HOB list in MMRAM.

In previous commit, we verify the HOB list and initialize a
new HOB list in MMRAM before we call the library constructor.
Since we might migrate some memory allocation HOB into MMRAM,
it's cleared to dump information in finaled HOB list.

Signed-off-by: Dun Tan <dun....@intel.com>


Compare: https://github.com/tianocore/edk2/compare/8e92e8761c63...e2bb5b530bb5

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to