// skip the LoadImage\r
//\r
if (DriverEntry->ImageHandle == NULL) {\r
+ DEBUG ((DEBUG_INFO, "Loading driver %g\n", &DriverEntry->FileName));\r
Status = CoreLoadImage (\r
FALSE,\r
gDxeCoreImageHandle,\r
// Build a device path to the file in the FV to pass into gBS->LoadImage\r
//\r
EfiInitializeFwVolDevicepathNode (&mFvDevicePath.File, DriverName);\r
- mFvDevicePath.End.Type = EFI_END_ENTIRE_DEVICE_PATH;\r
- mFvDevicePath.End.SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE;\r
- SetDevicePathNodeLength (&mFvDevicePath.End, sizeof (EFI_DEVICE_PATH_PROTOCOL));\r
+ SetDevicePathEndNode (&mFvDevicePath.End);\r
\r
FileNameDevicePath = AppendDevicePath (\r
FvDevicePath,\r
continue;\r
}\r
\r
- Status = CoreHandleProtocol (FvHandle, &gEfiFirmwareVolumeDispatchProtocolGuid, (VOID **)&Fv);\r
- if (EFI_ERROR (Status)) {\r
- //\r
- // If no dispatch protocol then skip, but do not marked as being processed as it\r
- // may show up later.\r
- //\r
- continue;\r
- }\r
-\r
//\r
// Since we are about to process this Fv mark it as processed.\r
//\r
// be initialized completely.\r
//\r
EfiInitializeFwVolDevicepathNode (&mFvDevicePath.File, &NameGuid);\r
- mFvDevicePath.End.Type = EFI_END_ENTIRE_DEVICE_PATH;\r
- mFvDevicePath.End.SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE;\r
- SetDevicePathNodeLength (&mFvDevicePath.End, sizeof (EFI_DEVICE_PATH_PROTOCOL));\r
+ SetDevicePathEndNode (&mFvDevicePath.End);\r
\r
gDxeCoreLoadedImage->FilePath = DuplicateDevicePath (\r
(EFI_DEVICE_PATH_PROTOCOL *)&mFvDevicePath\r