Changeset 33540 in vbox for trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/BdsBoot.c
- Timestamp:
- Oct 28, 2010 9:27:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Library/VBoxGenericBdsLib/BdsBoot.c
r29125 r33540 38 38 39 39 /// 40 /// This GUID is used for an EFI Variable that stores the front device path es40 /// This GUID is used for an EFI Variable that stores the front device paths 41 41 /// for a partial device path that starts with the HD node. 42 42 /// … … 242 242 243 243 // 244 // If the boot option point to Internal FV shell, make sure it is valid244 // If the boot option points to Internal FV shell, make sure it is valid 245 245 // 246 246 Status = BdsLibUpdateFvFileDevicePath (&DevicePath, PcdGetPtr(PcdShellFile)); … … 356 356 DEBUG((DEBUG_INFO, "%a:%d LoadingImage '%s' - %r\n", __FILE__, __LINE__, DevPathToTxt->ConvertDevicePathToText(DevicePath, TRUE, FALSE), Status)); 357 357 // 358 // If we didn't find an image directly, we need to try as if it is a removable device boot op otion358 // If we didn't find an image directly, we need to try as if it is a removable device boot option 359 359 // and load the image according to the default boot behavior for removable device. 360 360 // … … 461 461 @param HardDriveDevicePath EFI Device Path to boot, if it starts with a hard 462 462 drive media device path. 463 @return A Pointer to the full device path or NULL if a valid Hard Drive devic path463 @return A Pointer to the full device path or NULL if a valid Hard Drive device path 464 464 cannot be found. 465 465 … … 1467 1467 if (EFI_ERROR (Status)) { 1468 1468 // 1469 // Skip the case that the boot option point to a simple file protocol which does not consume block Io protocol,1469 // Skip the case that the boot option points to a simple file protocol which does not consume block Io protocol, 1470 1470 // 1471 1471 Status = gBS->LocateDevicePath (&gEfiSimpleFileSystemProtocolGuid, &UpdatedDevicePath, &Handle); … … 1773 1773 1774 1774 /** 1775 Check whether the Device path in a boot option point to a valid bootable device,1775 Check whether the Device path in a boot option points to a valid bootable device, 1776 1776 And if CheckMedia is true, check the device is ready to boot now. 1777 1777 … … 1794 1794 1795 1795 /** 1796 Check whether the Device path in a boot option point to a valid bootable device,1796 Check whether the Device path in a boot option points to a valid bootable device, 1797 1797 And if CheckMedia is true, check the device is ready to boot now. 1798 1798 If Description is not NULL and the device path point to a fixed BlockIo … … 1863 1863 1864 1864 // 1865 // If the boot option point to a file, it is a valid EFI boot option,1865 // If the boot option points to a file, it is a valid EFI boot option, 1866 1866 // and assume it is ready to boot now 1867 1867 // … … 1880 1880 if (EfiGetNameGuidFromFwVolDevicePathNode ((MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *) LastDeviceNode) != NULL) { 1881 1881 // 1882 // If the boot option point to Internal FV shell, make sure it is valid1882 // If the boot option points to Internal FV shell, make sure it is valid 1883 1883 // 1884 1884 TempDevicePath = DevPath; … … 1895 1895 1896 1896 // 1897 // If the boot option point to a blockIO device:1897 // If the boot option points to a blockIO device: 1898 1898 // if it is a removable blockIo device, it is valid. 1899 1899 // if it is a fixed blockIo device, check its description confliction. … … 1931 1931 } else { 1932 1932 // 1933 // if the boot option point to a simple file protocol which does not consume block Io protocol, it is also a valid EFI boot option,1933 // if the boot option points to a simple file protocol which does not consume block Io protocol, it is also a valid EFI boot option, 1934 1934 // 1935 1935 Status = gBS->LocateDevicePath (&gEfiSimpleFileSystemProtocolGuid, &TempDevicePath, &Handle);
Note:
See TracChangeset
for help on using the changeset viewer.