Changeset 105670 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib
- Timestamp:
- Aug 14, 2024 1:16:30 PM (5 months ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-159268 /vendor/edk2/current 103735-103757,103769-103776,129194-164365
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c
r99404 r105670 15 15 Function will replace drive identifier with CWD. 16 16 17 If FullPath begin ing with ':' is invalid path, then ASSERT.18 If FullPath not include d irve identifier , then do nothing.17 If FullPath beginning with ':' is invalid path, then ASSERT. 18 If FullPath not include drive identifier , then do nothing. 19 19 If FullPath likes "fs0:\xx" or "fs0:/xx" , then do nothing. 20 20 If FullPath likes "fs0:xxx" or "fs0:", the drive replaced by CWD. -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c
r99404 r105670 428 428 unfiltered. 429 429 430 @retval SHELL_SUCCESS the printing was suc essful.430 @retval SHELL_SUCCESS the printing was successful. 431 431 **/ 432 432 SHELL_STATUS -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c
r99404 r105670 1355 1355 TRUE 1356 1356 ); 1357 } // we were suc essful so do an output1357 } // we were successful so do an output 1358 1358 } 1359 1359 } // got a valid map target -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
r99404 r105670 217 217 have 2 possible destination). 218 218 219 if the result is suc essful the caller must free *DestPathPointer.219 if the result is successful the caller must free *DestPathPointer. 220 220 221 221 @param[in] DestParameter The original path to the destination. … … 228 228 @retval SHELL_INVALID_PARAMETER The DestParameter could be resolved to more than 1 location. 229 229 @retval SHELL_INVALID_PARAMETER Cwd is required and is NULL. 230 @retval SHELL_SUCCESS The operation was suc essful.230 @retval SHELL_SUCCESS The operation was successful. 231 231 **/ 232 232 SHELL_STATUS … … 851 851 // 852 852 // ValidateAndMoveFiles will report errors to the screen itself 853 // Only change ShellStatus if it's suc essful853 // Only change ShellStatus if it's successful 854 854 // 855 855 if (ShellStatus == SHELL_SUCCESS) { -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c
r99404 r105670 80 80 &OsIndications 81 81 ); 82 if (!EFI_ERROR (Status)) {83 if ((OsIndications & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) != 0) {84 DataSize = sizeof (OsIndications);85 Status = gRT->GetVariable (86 EFI_OS_INDICATIONS_VARIABLE_NAME,87 &gEfiGlobalVariableGuid,88 &Attr,89 &DataSize,90 &OsIndications91 );92 if (!EFI_ERROR (Status)) {93 OsIndications |= EFI_OS_INDICATIONS_BOOT_TO_FW_UI;94 } else {95 OsIndications = EFI_OS_INDICATIONS_BOOT_TO_FW_UI;96 }97 82 98 Status = gRT->SetVariable ( 83 if (EFI_ERROR (Status)) { 84 ShellStatus = SHELL_UNSUPPORTED; 85 goto Error; 86 } 87 88 if ((OsIndications & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) != 0) { 89 DataSize = sizeof (OsIndications); 90 Status = gRT->GetVariable ( 99 91 EFI_OS_INDICATIONS_VARIABLE_NAME, 100 92 &gEfiGlobalVariableGuid, 101 EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,102 sizeof (OsIndications),93 &Attr, 94 &DataSize, 103 95 &OsIndications 104 96 ); 97 98 if (EFI_ERROR (Status)) { 99 OsIndications = EFI_OS_INDICATIONS_BOOT_TO_FW_UI; 100 } else { 101 OsIndications |= EFI_OS_INDICATIONS_BOOT_TO_FW_UI; 105 102 } 103 104 Status = gRT->SetVariable ( 105 EFI_OS_INDICATIONS_VARIABLE_NAME, 106 &gEfiGlobalVariableGuid, 107 EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, 108 sizeof (OsIndications), 109 &OsIndications 110 ); 106 111 } 107 112 -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Set.c
r99404 r105670 15 15 If you spawn a pre 2.0 shell from the Shell 2.0 the environment variable may not carry through. 16 16 17 @retval STATUS_SUCCESS the printout was suc essful17 @retval STATUS_SUCCESS the printout was successful 18 18 @return any return code from GetNextVariableName except EFI_NOT_FOUND 19 19 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c
r99404 r105670 54 54 @param SystemTable the EFI System Table pointer 55 55 56 @retval EFI_SUCCESS the shell command handlers were installed suc essfully56 @retval EFI_SUCCESS the shell command handlers were installed successfully 57 57 @retval EFI_UNSUPPORTED the shell level required was not found. 58 58 **/ … … 149 149 150 150 /** 151 returns a fully qualified directory (contains a map drive at the begin ing)151 returns a fully qualified directory (contains a map drive at the beginning) 152 152 path from a unknown directory path. 153 153 154 If Path is already fully qualified this will return a duplicat otherwise this154 If Path is already fully qualified this will return a duplicate otherwise this 155 155 will use get the current directory and use that to build the fully qualified 156 156 version. … … 162 162 @retval NULL A memory allocation failed 163 163 @retval NULL A fully qualified path could not be discovered. 164 @retval other An allocated pointer to a ful y qualified path.164 @retval other An allocated pointer to a fully qualified path. 165 165 **/ 166 166 CHAR16 * -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
r99404 r105670 242 242 243 243 /** 244 returns a fully qualified directory (contains a map drive at the begin ing)244 returns a fully qualified directory (contains a map drive at the beginning) 245 245 path from a unknown directory path. 246 246 247 If Path is already fully qualified this will return a duplicat otherwise this247 If Path is already fully qualified this will return a duplicate otherwise this 248 248 will use get the current directory and use that to build the fully qualified 249 249 version. … … 255 255 @retval NULL A memory allocation failed 256 256 @retval NULL a fully qualified path could not be discovered. 257 @retval other pointer to a ful y qualified path.257 @retval other pointer to a fully qualified path. 258 258 **/ 259 259 CHAR16 * -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c
r99404 r105670 19 19 @param[in] Name New name to set to the volume label. 20 20 21 @retval SHELL_SUCCESS The operation was suc essful.21 @retval SHELL_SUCCESS The operation was successful. 22 22 **/ 23 23 SHELL_STATUS
Note:
See TracChangeset
for help on using the changeset viewer.