Skip to content

Commit e4e6b78

Browse files
xuweiintelapop5
authored andcommitted
[Cherry-Pick] StandaloneMmPkg/Core: Dump all HOB info in entrypoint
Print HOB information at top of StandaloneMmMain(). Cc: Ard Biesheuvel <[email protected]> Cc: Sami Mujawar <[email protected]> Cc: Ray Ni <[email protected]> Cc: Jiaxin Wu <[email protected]> Signed-off-by: Wei6 Xu <[email protected]>
1 parent df89b68 commit e4e6b78

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

StandaloneMmPkg/Core/StandaloneMmCore.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,10 @@ StandaloneMmMain (
528528

529529
DEBUG ((DEBUG_INFO, "MmMain - 0x%x\n", HobStart));
530530

531+
DEBUG_CODE (
532+
PrintHobList (HobStart, NULL);
533+
);
534+
531535
//
532536
// Determine if the caller has passed a reference to a MM_CORE_PRIVATE_DATA
533537
// structure in the Hoblist. This choice will govern how boot information is

StandaloneMmPkg/Core/StandaloneMmCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include <Library/ReportStatusCodeLib.h>
4141
#include <Library/MemoryAllocationLib.h>
4242
#include <Library/PcdLib.h>
43-
43+
#include <Library/HobPrintLib.h>
4444
#include <Library/StandaloneMmMemLib.h>
4545
#include <Library/HobLib.h>
4646

StandaloneMmPkg/Core/StandaloneMmCore.inf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
PeCoffLib
5353
ReportStatusCodeLib
5454
StandaloneMmCoreEntryPoint
55+
HobPrintLib
5556

5657
[Protocols]
5758
gEfiDxeMmReadyToLockProtocolGuid ## UNDEFINED # SmiHandlerRegister

StandaloneMmPkg/StandaloneMmPkg.dsc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPointNull/StandaloneMmCoreEntryPointNull.inf # MU_CHANGE
6161
StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
6262
VariableMmDependency|StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
63+
HobPrintLib|MdeModulePkg/Library/HobPrintLib/HobPrintLib.inf
6364
MmuLib|MdePkg/Library/BaseMmuLibNull/BaseMmuLibNull.inf # MU_CHANGE
6465
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf # MU_CHANGE: /GS and -fstack-protector support
6566

0 commit comments

Comments
 (0)