]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeatures.h
UefiCpuPkg/RegisterCpuFeaturesLib: avoid use dynamic PCD.
authorDong, Eric <eric.dong@intel.com>
Mon, 15 Jul 2019 07:00:56 +0000 (15:00 +0800)
committerEric Dong <eric.dong@intel.com>
Thu, 18 Jul 2019 00:22:19 +0000 (08:22 +0800)
commit3dafa0382286f00d5969b9471d4a0ab362beab11
tree36fbe81ac85f38eb08fb44a6c86d1f32283bb87c
parentbbd357ae57ec256e3aff9ecb38b6a588815bc861
UefiCpuPkg/RegisterCpuFeaturesLib: avoid use dynamic PCD.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1972

Function in this library may be used by APs. Assert will be trig if AP
uses dynamic pcd.
This patch enhance the current code, remove the unnecessary usage of
dynamic PCD. This change try to avoid report this issue again later.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Chandana Kumar <chandana.c.kumar@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c
UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeatures.h
UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c