X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FLibrary%2FCpuCommonFeaturesLib%2FMachineCheck.c;h=c4eca062fdcdecda72235e9035ff4805c6161c2e;hp=cc64dbbf0a1f2d3e6bc06d642bc353a77d133fd6;hb=7367cc6c24d01b400d2370ffd58ae02854a56b32;hpb=dc7363f848158564d8404c415061acf8c51ceb45 diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c index cc64dbbf0a..c4eca062fd 100644 --- a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c +++ b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c @@ -140,7 +140,7 @@ McaInitialize ( MSR_IA32_MCG_CAP_REGISTER McgCap; UINT32 BankIndex; - if (State == TRUE) { + if (State) { McgCap.Uint64 = AsmReadMsr64 (MSR_IA32_MCG_CAP); for (BankIndex = 0; BankIndex < (UINT32) McgCap.Bits.Count; BankIndex++) { CPU_REGISTER_TABLE_WRITE64 ( @@ -235,7 +235,7 @@ McgCtlInitialize ( } /** - Detects if Local machine check exception feature supported on current + Detects if Local machine check exception feature supported on current processor. @param[in] ProcessorNumber The index of the CPU executing this function.