]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/SmmAccess/SmmAccessPei.c
OvmfPkg/Csm/LegacyBootManagerLib: Update to make it build for OVMF
[mirror_edk2.git] / OvmfPkg / SmmAccess / SmmAccessPei.c
index a3631a1b9d508d81dbdd7f0d3c3a8babd2ea8e6e..d67850651c5835618e36b6cde4fabaab00128332 100644 (file)
   Copyright (C) 2013, 2015, Red Hat, Inc.<BR>\r
   Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
 \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, WITHOUT\r
-  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -330,7 +324,8 @@ SmmAccessPeiEntryPoint (
   EsmramcVal &= ~(UINT32)MCH_ESMRAMC_TSEG_MASK;\r
   EsmramcVal |= mQ35TsegMbytes == 8 ? MCH_ESMRAMC_TSEG_8MB :\r
                 mQ35TsegMbytes == 2 ? MCH_ESMRAMC_TSEG_2MB :\r
-                MCH_ESMRAMC_TSEG_1MB;\r
+                mQ35TsegMbytes == 1 ? MCH_ESMRAMC_TSEG_1MB :\r
+                MCH_ESMRAMC_TSEG_EXT;\r
   EsmramcVal |= MCH_ESMRAMC_T_EN;\r
   PciWrite8 (DRAMC_REGISTER_Q35 (MCH_ESMRAMC), EsmramcVal);\r
 \r