]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformPei/FeatureControl.c
OvmfPkg/AcpiPlatformDxe: Use XenPlatformLib
[mirror_edk2.git] / OvmfPkg / PlatformPei / FeatureControl.c
index b91d9888a9470e9c6cdb284cd0e25468a9c69eec..1a9d75022f48857389520fee30e29faa9ef2f5ba 100644 (file)
@@ -4,20 +4,14 @@
 \r
   Copyright (C) 2016, Red Hat, Inc.\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
 #include <Library/DebugLib.h>\r
 #include <Library/PeiServicesLib.h>\r
 #include <Library/QemuFwCfgLib.h>\r
 #include <Ppi/MpServices.h>\r
-#include <Register/Msr/Core2Msr.h>\r
+#include <Register/ArchitecturalMsr.h>\r
 \r
 #include "Platform.h"\r
 \r
@@ -43,7 +37,7 @@ WriteFeatureControl (
   IN OUT VOID *WorkSpace\r
   )\r
 {\r
-  AsmWriteMsr64 (MSR_CORE2_FEATURE_CONTROL, mFeatureControlValue);\r
+  AsmWriteMsr64 (MSR_IA32_FEATURE_CONTROL, mFeatureControlValue);\r
 }\r
 \r
 /**\r