Revision: 19148
http://sourceforge.net/p/edk2/code/19148
Author: leiflindholm
Date: 2015-12-07 16:51:35 +0000 (Mon, 07 Dec 2015)
Log Message:
-----------
ArmPkg/BdsLib: Send RemainingDevicePath to PXE Load File protocol
Load File protocol requires remaining device path rather than whole
device path. For PXE, it actually requires end node device path only,
or else invalid parameter will be returned directly.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]>
Modified Paths:
--------------
trunk/edk2/ArmPkg/Library/BdsLib/BdsFilePath.c
Modified: trunk/edk2/ArmPkg/Library/BdsLib/BdsFilePath.c
===================================================================
--- trunk/edk2/ArmPkg/Library/BdsLib/BdsFilePath.c 2015-12-07 09:22:21 UTC
(rev 19147)
+++ trunk/edk2/ArmPkg/Library/BdsLib/BdsFilePath.c 2015-12-07 16:51:35 UTC
(rev 19148)
@@ -752,14 +752,14 @@
return Status;
}
- Status = LoadFileProtocol->LoadFile (LoadFileProtocol, *DevicePath, TRUE,
&BufferSize, NULL);
+ Status = LoadFileProtocol->LoadFile (LoadFileProtocol, RemainingDevicePath,
TRUE, &BufferSize, NULL);
if (Status == EFI_BUFFER_TOO_SMALL) {
Status = gBS->AllocatePages (Type, EfiBootServicesCode,
EFI_SIZE_TO_PAGES(BufferSize), Image);
if (EFI_ERROR (Status)) {
return Status;
}
- Status = LoadFileProtocol->LoadFile (LoadFileProtocol, *DevicePath, TRUE,
&BufferSize, (VOID*)(UINTN)(*Image));
+ Status = LoadFileProtocol->LoadFile (LoadFileProtocol,
RemainingDevicePath, TRUE, &BufferSize, (VOID*)(UINTN)(*Image));
if (!EFI_ERROR (Status) && (ImageSize != NULL)) {
*ImageSize = BufferSize;
}
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits