]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Core / PiSmmCore / PiSmmIpl.c
index f8cbe1704bfd78e715c42b983456fa25b1a1efbc..1cf8c93227a3b48ed64045ee400862f016793b1d 100644 (file)
@@ -2,13 +2,7 @@
   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
@@ -672,21 +666,10 @@ SmmIplDxeDispatchEventNotify (
       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