From d8fdd5247ca6e33c71fc354fdb752f3c8df9d72c Mon Sep 17 00:00:00 2001 From: jcarsey Date: Thu, 5 Jan 2012 18:20:23 +0000 Subject: [PATCH] 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 --- ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c | 8 ++++---- 1 file 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); } } }