summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Table/TableReport.py
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2019-07-11 19:56:25 +0800
committerEric Dong <eric.dong@intel.com>2019-07-18 08:22:19 +0800
commitbbd357ae57ec256e3aff9ecb38b6a588815bc861 (patch)
treeffd5ba9b966731bd15e18119308b4b446e2c0173 /BaseTools/Source/Python/Table/TableReport.py
parent04dd0cb972cd35f4bf59f5692096a65b840156d5 (diff)
downloadedk2-bbd357ae57ec256e3aff9ecb38b6a588815bc861.tar.gz
edk2-bbd357ae57ec256e3aff9ecb38b6a588815bc861.tar.bz2
edk2-bbd357ae57ec256e3aff9ecb38b6a588815bc861.zip
UefiCpuPkg/RegisterCpuFeaturesLib: Avoid AP calls PeiServices table.
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 PeiServices table which caused below assert info: Processor Info: Package: 1, MaxCore : 4, MaxThread: 1 Package: 0, Valid Core : 4 ASSERT [CpuFeaturesPei] c:\projects\jsl\jsl_v1193\Edk2\MdePkg\Library \PeiServicesTablePointerLibIdt\PeiServicesTablePointer.c(48): PeiServices != ((void *) 0) This change uses saved global pcd size instead of calls PcdGetSize to fix this issue. 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>
Diffstat (limited to 'BaseTools/Source/Python/Table/TableReport.py')
0 files changed, 0 insertions, 0 deletions