mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg RegisterCpuFeaturesLib: Add error handling.
Disable CPU feature may return error, add error handling code to handle it instead of assert it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
This commit is contained in:
parent
5fc3889bb3
commit
852b3935c9
|
@ -536,7 +536,14 @@ AnalysisProcessorFeatures (
|
|||
}
|
||||
} else {
|
||||
Status = CpuFeatureInOrder->InitializeFunc (ProcessorNumber, CpuInfo, CpuFeatureInOrder->ConfigData, FALSE);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
if (EFI_ERROR (Status)) {
|
||||
if (CpuFeatureInOrder->FeatureName != NULL) {
|
||||
DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Name = %a.\n", CpuFeatureInOrder->FeatureName));
|
||||
} else {
|
||||
DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Mask = "));
|
||||
DumpCpuFeatureMask (CpuFeatureInOrder->FeatureMask);
|
||||
}
|
||||
}
|
||||
}
|
||||
Entry = Entry->ForwardLink;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue