diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-05 18:20:23 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-05 18:20:23 +0000 |
commit | d8fdd5247ca6e33c71fc354fdb752f3c8df9d72c (patch) | |
tree | 2bb0552ae220ead63d6e2fc9e9c62011a82e29b0 /ShellPkg | |
parent | 1e44cb991fbf128856e08518bed71aa7f02af241 (diff) | |
download | edk2-platforms-d8fdd5247ca6e33c71fc354fdb752f3c8df9d72c.tar.xz |
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
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c index f69a79b71a..f010b7033c 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c @@ -81,9 +81,9 @@ ShellCommandRunReset ( } else {
String = ShellCommandLineGetValue(Package, L"-w");
if (String != NULL) {
- gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, StrSize(String), (VOID*)String);
+ gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, StrSize(String), (VOID*)String);
} else {
- gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
+ gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);
}
}
} else if (ShellCommandLineGetFlag(Package, L"-s")) {
@@ -105,9 +105,9 @@ ShellCommandRunReset ( //
String = ShellCommandLineGetValue(Package, L"-c");
if (String != NULL) {
- gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, StrSize(String), (VOID*)String);
+ gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, StrSize(String), (VOID*)String);
} else {
- gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);
+ gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
}
}
}
|