Skip to content

Commit

Permalink
[Cherry-Pick] StandaloneMmPkg/Core: Dump all HOB info in entrypoint
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
xuweiintel authored and ProjectMuBot committed Oct 31, 2024
1 parent c66c87d commit 1780201
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions StandaloneMmPkg/Core/StandaloneMmCore.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ StandaloneMmMain (

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

DEBUG_CODE (
PrintHobList (HobStart, NULL);
);

//
// Determine if the caller has passed a reference to a MM_CORE_PRIVATE_DATA
// structure in the Hoblist. This choice will govern how boot information is
Expand Down
2 changes: 1 addition & 1 deletion StandaloneMmPkg/Core/StandaloneMmCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <Library/ReportStatusCodeLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>

#include <Library/HobPrintLib.h>
#include <Library/StandaloneMmMemLib.h>
#include <Library/HobLib.h>

Expand Down
1 change: 1 addition & 0 deletions StandaloneMmPkg/Core/StandaloneMmCore.inf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
PeCoffLib
ReportStatusCodeLib
StandaloneMmCoreEntryPoint
HobPrintLib

[Protocols]
gEfiDxeMmReadyToLockProtocolGuid ## UNDEFINED # SmiHandlerRegister
Expand Down
1 change: 1 addition & 0 deletions StandaloneMmPkg/StandaloneMmPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPointNull/StandaloneMmCoreEntryPointNull.inf # MU_CHANGE
StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
VariableMmDependency|StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
HobPrintLib|MdeModulePkg/Library/HobPrintLib/HobPrintLib.inf
MmuLib|MdePkg/Library/BaseMmuLibNull/BaseMmuLibNull.inf # MU_CHANGE
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf # MU_CHANGE: /GS and -fstack-protector support

Expand Down

0 comments on commit 1780201

Please sign in to comment.