Skip to content

Commit

Permalink
Update X64 GCD Sync Verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorBeebe authored and kenlautner committed May 4, 2023
1 parent 94dc3ac commit 8638429
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MdeModulePkg/Core/Dxe/Gcd/Gcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ CoreDumpGcdMemorySpaceMap (
EFI_GCD_MEMORY_SPACE_DESCRIPTOR *MemorySpaceMap;
UINTN Index;

// MU_CHANGE START: Skip this code if DEBUG_GCD is disabled for performance improvement
if (!DebugPrintLevelEnabled (DEBUG_GCD)) {
return;
}

// MU_CHANGE
Status = CoreGetMemorySpaceMap (&NumberOfDescriptors, &MemorySpaceMap);
ASSERT (Status == EFI_SUCCESS && MemorySpaceMap != NULL);

Expand Down
1 change: 1 addition & 0 deletions UefiCpuPkg/CpuDxe/CpuDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ RefreshGcdMemoryAttributes (
}

if (IsPagingAndPageAddressExtensionsEnabled ()) {
DEBUG ((DEBUG_INFO, "Syncing GCD...\n")); // MU_CHANGE
RefreshGcdMemoryAttributesFromPaging ();
}

Expand Down

0 comments on commit 8638429

Please sign in to comment.