Fix KW issue
It should use local variable ResetReason instead of OsBootOptionList in case of OS boot option is not available. Signed-off-by: Guo Dong <guo.dong@intel.com>
This commit is contained in:
parent
ba38c1bd6f
commit
5de02e118d
|
@ -313,7 +313,7 @@ AddSblCommandLine (
|
|||
//
|
||||
if ((OsConfigData != NULL) && (OsConfigData->EnableCrashMode != 0)) {
|
||||
Data8 = (UINT8)~(ResetCold | ResetPowerOn | ResetGlobal | ResetWakeS3);
|
||||
if ((OsBootOptionList->ResetReason & Data8) != 0) {
|
||||
if ((ResetReason & Data8) != 0) {
|
||||
AsciiStrCatS (CommandLine, MaxCmdSize, " boot_target=CRASHMODE");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue