]> git.proxmox.com Git - mirror_edk2.git/commitdiff
QuarkPlatformPkg: Set PcdSpeculationBarrierType to CPUID
authorMichael D Kinney <michael.d.kinney@intel.com>
Mon, 29 Apr 2019 23:22:09 +0000 (16:22 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Tue, 30 Apr 2019 23:39:33 +0000 (16:39 -0700)
Set PcdSpeculationBarrierType to use CPUID instead of the
default LFENCE in the BaseLib function SpeculationBarrier().
LFENCE requires SSE2, and Quark platforms do not support
SSE2.

Cc: Kelly Steele <kelly.steele@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
QuarkPlatformPkg/Quark.dsc
QuarkPlatformPkg/QuarkMin.dsc

index 422fd9cf8d1508a1f1b754b121e6250ef94d33bf..96ddc1565a8a12f609b8d92f1bcf310312485f33 100644 (file)
@@ -2,7 +2,7 @@
 # Clanton Peak CRB platform with 32-bit DXE for 4MB/8MB flash devices.\r
 #\r
 # This package provides Clanton Peak CRB platform specific modules.\r
-# Copyright (c) 2013 - 2018 Intel Corporation.\r
+# Copyright (c) 2013 - 2019 Intel Corporation.\r
 #\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName|L"QUARKREC.Cap"\r
 !endif\r
 \r
+  #\r
+  # Quark does not support LFENCE.  Use CPUID as speculation barrier\r
+  #\r
+  gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x02\r
+\r
 [PcdsPatchableInModule]\r
   gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x803000C7\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
index 00e2febb54769f5d21dbb03782f6a1feab387506..8ca75bc474ccf42ed26ec48818ddbbe88384ff3e 100644 (file)
 \r
   gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|FALSE\r
 \r
+  #\r
+  # Quark does not support LFENCE.  Use CPUID as speculation barrier\r
+  #\r
+  gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x02\r
+\r
 [PcdsPatchableInModule]\r
   gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x803000C7\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r