summaryrefslogtreecommitdiffstats
path: root/QuarkPlatformPkg
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2019-04-29 16:22:09 -0700
committerMichael D Kinney <michael.d.kinney@intel.com>2019-04-30 16:39:33 -0700
commit24f4547c5c126176634dccb5816b28439ee82a89 (patch)
tree5eca35d9985e5b204ab99d040015c8884be187f5 /QuarkPlatformPkg
parentaec74656893a6162c7b2784bc99042f7c84e1f00 (diff)
downloadedk2-24f4547c5c126176634dccb5816b28439ee82a89.tar.gz
edk2-24f4547c5c126176634dccb5816b28439ee82a89.tar.bz2
edk2-24f4547c5c126176634dccb5816b28439ee82a89.zip
QuarkPlatformPkg: Set PcdSpeculationBarrierType to CPUID
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>
Diffstat (limited to 'QuarkPlatformPkg')
-rw-r--r--QuarkPlatformPkg/Quark.dsc7
-rw-r--r--QuarkPlatformPkg/QuarkMin.dsc5
2 files changed, 11 insertions, 1 deletions
diff --git a/QuarkPlatformPkg/Quark.dsc b/QuarkPlatformPkg/Quark.dsc
index 422fd9cf8d..96ddc1565a 100644
--- a/QuarkPlatformPkg/Quark.dsc
+++ b/QuarkPlatformPkg/Quark.dsc
@@ -2,7 +2,7 @@
# Clanton Peak CRB platform with 32-bit DXE for 4MB/8MB flash devices.
#
# This package provides Clanton Peak CRB platform specific modules.
-# Copyright (c) 2013 - 2018 Intel Corporation.
+# Copyright (c) 2013 - 2019 Intel Corporation.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -448,6 +448,11 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName|L"QUARKREC.Cap"
!endif
+ #
+ # Quark does not support LFENCE. Use CPUID as speculation barrier
+ #
+ gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x02
+
[PcdsPatchableInModule]
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x803000C7
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
diff --git a/QuarkPlatformPkg/QuarkMin.dsc b/QuarkPlatformPkg/QuarkMin.dsc
index 00e2febb54..8ca75bc474 100644
--- a/QuarkPlatformPkg/QuarkMin.dsc
+++ b/QuarkPlatformPkg/QuarkMin.dsc
@@ -406,6 +406,11 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|FALSE
+ #
+ # Quark does not support LFENCE. Use CPUID as speculation barrier
+ #
+ gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x02
+
[PcdsPatchableInModule]
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x803000C7
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0