]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuMpPei/CpuBist.c
UefiCpuPkg/CpuMpPei: Fix CPU Healthy issue in PeiGetProcessorInfo ()
[mirror_edk2.git] / UefiCpuPkg / CpuMpPei / CpuBist.c
index 2bee7a4a665becf232cd69dc27601131d20f2048..56292452a9c786d8741c9a33a259d05d4957c2d0 100644 (file)
@@ -226,7 +226,10 @@ CollectBistDataFromPpi (
         CpuData->Health = CpuInstance[CpuIndex].InfoRecord.IA32HealthFlags;\r
       }\r
     }\r
-    if (CpuData->Health.Uint32 != 0) {\r
+    if (CpuData->Health.Uint32 == 0) {\r
+      CpuData->CpuHealthy = TRUE;\r
+    } else {\r
+      CpuData->CpuHealthy = FALSE;\r
       //\r
       // Report Status Code that self test is failed\r
       //\r