mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
UefiCpuPkg/MpInitLib: MicrocodeData used but maybe uninitialized
Cc: Feng Tian <feng.tian@intel.com> Cc: Dandan Bi <dandan.bi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
parent
1de28466b0
commit
8cce3c9a70
@ -92,6 +92,7 @@ MicrocodeDetect (
|
|||||||
PlatformId = (UINT8) PlatformIdMsr.Bits.PlatformId;
|
PlatformId = (UINT8) PlatformIdMsr.Bits.PlatformId;
|
||||||
|
|
||||||
LatestRevision = 0;
|
LatestRevision = 0;
|
||||||
|
MicrocodeData = NULL;
|
||||||
MicrocodeEnd = (UINTN) (MicrocodePatchAddress + MicrocodePatchRegionSize);
|
MicrocodeEnd = (UINTN) (MicrocodePatchAddress + MicrocodePatchRegionSize);
|
||||||
MicrocodeEntryPoint = (CPU_MICROCODE_HEADER *) (UINTN) MicrocodePatchAddress;
|
MicrocodeEntryPoint = (CPU_MICROCODE_HEADER *) (UINTN) MicrocodePatchAddress;
|
||||||
do {
|
do {
|
||||||
@ -198,6 +199,7 @@ MicrocodeDetect (
|
|||||||
// Revision. A processor with no loaded update is considered to have a
|
// Revision. A processor with no loaded update is considered to have a
|
||||||
// revision equal to zero.
|
// revision equal to zero.
|
||||||
//
|
//
|
||||||
|
ASSERT (MicrocodeData != NULL);
|
||||||
AsmWriteMsr64 (
|
AsmWriteMsr64 (
|
||||||
MSR_IA32_BIOS_UPDT_TRIG,
|
MSR_IA32_BIOS_UPDT_TRIG,
|
||||||
(UINT64) (UINTN) MicrocodeData
|
(UINT64) (UINTN) MicrocodeData
|
||||||
|
Loading…
x
Reference in New Issue
Block a user