From 5bd6c17a2d9448ab52db151bbf32aa5a8b42f0da Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Tue, 6 Aug 2024 21:54:09 +0800 Subject: [PATCH] Platform/Intel: Override BaseMemoryLib if SmmProfile enable Signed-off-by: Jiaxin Wu --- .../Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkg.dsc | 3 +++ .../Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkg.dsc b/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkg.dsc index 2880e4743b..07dc87ff11 100644 --- a/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkg.dsc +++ b/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkg.dsc @@ -120,6 +120,9 @@ SiliconPolicyUpdateLib|$(BOARD_PKG)/Policy/Library/SiliconPolicyUpdateLib/SiliconPolicyUpdateLib.inf PlatformCmosAccessLib|BoardModulePkg/Library/PlatformCmosAccessLibNull/PlatformCmosAccessLibNull.inf CmosAccessLib|BoardModulePkg/Library/CmosAccessLib/CmosAccessLib.inf +!if gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileEnable == TRUE + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf +!endif [LibraryClasses.common.SEC] ####################################### diff --git a/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc b/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc index 0dcc5b99f0..3b7911ebf1 100644 --- a/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc +++ b/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgPcd.dsc @@ -32,6 +32,7 @@ ###################################### # Edk2 Configuration ###################################### + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmProfileEnable|FALSE gEfiMdeModulePkgTokenSpaceGuid.PcdBrowerGrayOutReadOnlyMenu|TRUE gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE !if $(PEI_ARCH) == "IA32" && $(DXE_ARCH) == "X64" @@ -207,6 +208,7 @@ gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmCodeAccessCheckEnable |TRUE gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0 + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmRestrictedMemoryAccess|TRUE [PcdsPatchableInModule.common] ######################################