]> git.proxmox.com Git - mirror_edk2.git/commit - IntelSiliconPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdate.h
UefiCpuPkg/MicrocodeUpdate: enhance flash write logic
authorJiewen Yao <jiewen.yao@intel.com>
Mon, 26 Dec 2016 15:35:41 +0000 (23:35 +0800)
committerJiewen Yao <jiewen.yao@intel.com>
Wed, 28 Dec 2016 07:09:01 +0000 (15:09 +0800)
commit2ed658240c1f3ca10aa65dbbf74f4cf297145d8c
tree3a77c9aa157a36a36fd7365565a7bae3635a3ebc
parent1f20b2988cb223907e64a4736a3eb6030aa715b8
UefiCpuPkg/MicrocodeUpdate: enhance flash write logic

The patch updated MicrocodeWrite() to move the Microcode replacement logic
to a standalone function -  UpdateMicrocodeFlashRegion().
More detail description is added in UpdateMicrocodeFlashRegion()
to improve readability.

The Microcode information is collected in InitializeMicrocodeDescriptor(),
so that FmpGetImage() can get the info directly.
MicrocodeRead() is not needed any more.

Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeFmp.c
UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdate.c
UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdate.h