SMM IPL that produces SMM related runtime protocols and load the SMM Core into SMRAM\r
\r
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials are licensed and made available\r
- under the terms and conditions of the BSD License which accompanies this\r
- distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
return;\r
}\r
\r
- //\r
- // Attempt to reset SMRAM cacheability to UC\r
- // Assume CPU AP is available at this time\r
- //\r
- Status = gDS->SetMemorySpaceAttributes(\r
- mSmramCacheBase,\r
- mSmramCacheSize,\r
- EFI_MEMORY_UC\r
- );\r
- if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_WARN, "SMM IPL failed to reset SMRAM window to EFI_MEMORY_UC\n"));\r
- }\r
-\r
//\r
// Close all SMRAM ranges to protect SMRAM\r
+ // NOTE: SMRR is enabled by CPU SMM driver by calling SmmCpuFeaturesInitializeProcessor() from SmmCpuFeaturesLib\r
+ // so no need to reset the SMRAM to UC in MTRR.\r
//\r
Status = mSmmAccess->Close (mSmmAccess);\r
ASSERT_EFI_ERROR (Status);\r