]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg CpuCommonFeaturesLib: Enhance Ppin code
authorStar Zeng <star.zeng@intel.com>
Fri, 5 Jul 2019 05:14:33 +0000 (13:14 +0800)
committerEric Dong <eric.dong@intel.com>
Tue, 16 Jul 2019 08:03:51 +0000 (16:03 +0800)
commit84a459472075d94963463bffaa5dc6eee47f14c3
treed727d96267e615dbf07e94cb030fee41f9a64e03
parent51dd408ae1022e5c9378492451a62b38d5b101c5
UefiCpuPkg CpuCommonFeaturesLib: Enhance Ppin code

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1961
Enhance Ppin code to enable and unlock for TRUE State,
and disable and lock for FALSE State.
Note: enable and lock could not be set both.
According to SDM, once Enable_PPIN is set, attempt to write
1 to LockOut will cause #GP, and writing 1 to LockOut is
permitted only if Enable_PPIN is clear.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Chandana Kumar <chandana.c.kumar@intel.com>
Cc: Kevin Li <kevin.y.li@intel.com>
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeatures.h
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.c
UefiCpuPkg/Library/CpuCommonFeaturesLib/Ppin.c