mirror of https://github.com/acidanthera/audk.git
ShellPkg: Fix swapping of reset behavior.
This fix exchanges the behavior between "reset -c" and "reset" with "reset -w". signed-off-by: jliu66 reviewed-by: jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12909 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1e44cb991f
commit
d8fdd5247c
|
@ -81,9 +81,9 @@ ShellCommandRunReset (
|
||||||
} else {
|
} else {
|
||||||
String = ShellCommandLineGetValue(Package, L"-w");
|
String = ShellCommandLineGetValue(Package, L"-w");
|
||||||
if (String != NULL) {
|
if (String != NULL) {
|
||||||
gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, StrSize(String), (VOID*)String);
|
gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, StrSize(String), (VOID*)String);
|
||||||
} else {
|
} else {
|
||||||
gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
|
gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (ShellCommandLineGetFlag(Package, L"-s")) {
|
} else if (ShellCommandLineGetFlag(Package, L"-s")) {
|
||||||
|
@ -105,9 +105,9 @@ ShellCommandRunReset (
|
||||||
//
|
//
|
||||||
String = ShellCommandLineGetValue(Package, L"-c");
|
String = ShellCommandLineGetValue(Package, L"-c");
|
||||||
if (String != NULL) {
|
if (String != NULL) {
|
||||||
gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, StrSize(String), (VOID*)String);
|
gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, StrSize(String), (VOID*)String);
|
||||||
} else {
|
} else {
|
||||||
gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);
|
gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue