]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/Microcode: Fix InComplete CheckSum32 issue
authorChen A Chen <chen.a.chen@intel.com>
Thu, 28 Feb 2019 03:15:51 +0000 (11:15 +0800)
committerZhang, Chao B <chao.b.zhang@intel.com>
Fri, 1 Mar 2019 06:06:30 +0000 (14:06 +0800)
commitc3947b54235c93e4f41d6d56b1f5296a9f8021d5
tree4efc75629e21acafd5b7794786ac1e1349090f60
parent2a93cccc24cfca12c66f13a41d52fb0a82fb924e
UefiCpuPkg/Microcode: Fix InComplete CheckSum32 issue

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

The Microcode region indicated by MicrocodePatchAddress PCD may contain
more than one Microcode entry. We should save InCompleteCheckSum32 value
for each payload. Move the logic for calculate InCompleteCheckSum32 from
the outsize of the do-while loop to the inside.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
UefiCpuPkg/Library/MpInitLib/Microcode.c