audk/ArmPkg
Mark Salter 10ddca8db9 ArmPkg/BdsLib: Fix booting with partial paths
Boot entries created by efibootmgr may contain a partial device path
to the EFI application to boot. These entries begin with a partition
device path whereas entries created via ARM Boot Manager contain a
full path to the EFI application. The ARM BDS code will fill in the
missing parts of this partial device path as it does for removeable
device paths. This allows the application to be loaded and started.
However, the current code passes the original partial device path to
gBS->LoadImage() and thus LoadImage is unable to find a DeviceHandle
for the path. This means the application being booted cannot find the
boot device from the Loaded Image Protocol structure. In the case of
grub, this prevents the grub config file from being found. This patch
fixes this by making sure the full path is propagated back to the
caller of gBS->LoadImage() so that a proper DeviceHandle gets passed
to the application being booted.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15518 6f19259b-4bc3-4df7-8a09-765794883524
2014-05-08 15:09:27 +00:00
..
Application/LinuxLoader ArmPkg: Fixed unsigned type to be architecture independent 2013-03-12 00:50:46 +00:00
Drivers ARM Packages: Use .8byte instead of .dword for pointers 2014-05-08 14:59:50 +00:00
Filesystem/SemihostFs ArmPkg/SemihostFs: Various fixes for the file system 2014-03-25 11:04:41 +00:00
Include ArmPkg: Fixed GetEnvironmentVariable() when the UEFI Variable did not exist 2014-04-02 17:32:29 +00:00
Library ArmPkg/BdsLib: Fix booting with partial paths 2014-05-08 15:09:27 +00:00
ArmPkg.dec ArmPkg: Fix typo in comment and trailing spaces 2014-03-24 15:24:23 +00:00
ArmPkg.dsc ARM Packages: Renamed PL390Gic driver into ArmGic driver 2013-10-29 06:36:34 +00:00
Contributions.txt EDK II Packages: Add Contributions.txt and License.txt files 2012-04-11 23:19:46 +00:00
License.txt EDK II Packages: Added License.txt files 2012-04-12 16:40:32 +00:00