V2 Changes:
1. Revert IsBitMaskMatchCheck change which is not correct.
2. refine some variable name.

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

AP calls CollectProcessorData() to collect processor info.
CollectProcessorData function finally calls PcdGetSize function to
get DynamicPCD PcdCpuFeaturesSetting value. PcdGetSize will use gBS
which caused ASSERT. 
This patch serial fixes the issue and enhances the related code to avoid
later report this issue again.

Cc: Ray Ni <ray...@intel.com>
Cc: Laszlo Ersek <ler...@redhat.com>
Cc: Chandana Kumar <chandana.c.ku...@intel.com>
Cc: Star Zeng <star.z...@intel.com>


Eric Dong (2):
  UefiCpuPkg/RegisterCpuFeaturesLib: Avoid AP calls PeiServices table.
  UefiCpuPkg/Library/RegisterCpuFeaturesLib: avoid use dynamic PCD.

 .../CpuFeaturesInitialize.c                   | 77 +++++++++----------
 .../RegisterCpuFeatures.h                     | 10 ++-
 .../RegisterCpuFeaturesLib.c                  | 74 +++++++++---------
 3 files changed, 84 insertions(+), 77 deletions(-)

-- 
2.21.0.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#43705): https://edk2.groups.io/g/devel/message/43705
Mute This Topic: https://groups.io/mt/32475990/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to