Skip to content

Commit

Permalink
MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c: debug reset
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Sep 12, 2019
1 parent 17b9376 commit 96a84e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ BmSetMemoryTypeInformationVariable (
//
if (MemoryTypeInformationModified) {
DEBUG ((EFI_D_INFO, "Memory Type Information settings change.\n"));
if(PcdGetBool (PcdResetOnMemoryTypeInformationChange))
DEBUG ((EFI_D_INFO, "ResetOnMemoryTypeInformationChange enabled\n"));
else
DEBUG ((EFI_D_INFO, "ResetOnMemoryTypeInformationChange disabled\n"));

if (Boot && PcdGetBool (PcdResetOnMemoryTypeInformationChange)) {
DEBUG ((EFI_D_INFO, "...Warm Reset!!!\n"));
gRT->ResetSystem (EfiResetWarm, EFI_SUCCESS, 0, NULL);
Expand Down
1 change: 0 additions & 1 deletion UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }

gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|$(PCIE_BASE)

gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE

!if $(SOURCE_DEBUG_ENABLE)
Expand Down

0 comments on commit 96a84e7

Please sign in to comment.