[edk2-devel] [Patch v3 0/2] UefiCpuPkg/RegisterCpuFeaturesLib: Avoid AP calls PeiServices table

Dong, Eric eric.dong at intel.com
Wed Jul 17 01:58:58 UTC 2019


V3 Changes:
1. Remove IsCpuFeatureMatch function.

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

v1 changes:
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.ni at intel.com>
Cc: Laszlo Ersek <lersek at redhat.com>
Cc: Chandana Kumar <chandana.c.kumar at intel.com>
Cc: Star Zeng <star.zeng at intel.com>


Dong, Eric (1):
  UefiCpuPkg/RegisterCpuFeaturesLib: avoid use dynamic PCD.

Eric Dong (1):
  UefiCpuPkg/RegisterCpuFeaturesLib: Avoid AP calls PeiServices table.

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

-- 
2.21.0.windows.1


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

View/Reply Online (#43829): https://edk2.groups.io/g/devel/message/43829
Mute This Topic: https://groups.io/mt/32498613/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list