Skip to content

Commit

Permalink
PiSmmCpuDxeSmm [3/8]: 202302 Override Integration
Browse files Browse the repository at this point in the history
This change updated the override from mu_basecore upstream:
microsoft/mu_basecore@13b9773

Signed-off-by: Kun Qin <kuqin@microsoft.com>
  • Loading branch information
kuqin12 committed Jun 6, 2023
1 parent 25d2417 commit d975c0d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions MmSupervisorPkg/Core/Mem/SmmProfile.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Enable SMM profile.
Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2012 - 2023, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017 - 2020, AMD Incorporated. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
Expand Down Expand Up @@ -587,13 +587,18 @@ InitPaging (
}

SizeOfMemorySpace = HighBitSet64 (gPhyMask) + 1;
ASSERT (SizeOfMemorySpace <= 52);

//
// Calculate the table entries of PML4E and PDPTE.
// Calculate the table entries of PML5E, PML4E and PDPTE.
//
NumberOfPml5Entries = 1;
if (SizeOfMemorySpace > 48) {
NumberOfPml5Entries = (UINTN)LShiftU64 (1, SizeOfMemorySpace - 48);
SizeOfMemorySpace = 48;
if (Enable5LevelPaging) {
NumberOfPml5Entries = (UINTN)LShiftU64 (1, SizeOfMemorySpace - 48);
}

SizeOfMemorySpace = 48;
}

NumberOfPml4Entries = 1;
Expand Down

0 comments on commit d975c0d

Please sign in to comment.