]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/MdePkg.dec
MdePkg: Add PcdSpeculationBarrierType
authorMichael D Kinney <michael.d.kinney@intel.com>
Mon, 29 Apr 2019 23:17:20 +0000 (16:17 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Tue, 30 Apr 2019 23:39:09 +0000 (16:39 -0700)
commita41b12574ee1210b1cc73d7e5d374b1665cddaaa
tree17dc88ffcb59a30a8a4f63dc1329281b67d539a6
parent0c40c9c925ca1cc15b9cbeae31723b0b784b932e
MdePkg: Add PcdSpeculationBarrierType

Add gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType that
uses the PCD type FixedAtBuild.  This performs a build time
selection for the type of speculation barrier to use in the
BaseLib function SpeculationBarrier().  The recommended
speculation barrier for x86 is LFENCE and this is the default
value for this PCD.  x86 CPUs that do not support LFENCE must
select one of the other supported values which includes CPUID
and nothing.

Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Brian J. Johnson <brian.johnson@hpe.com>
MdePkg/MdePkg.dec
MdePkg/MdePkg.uni