Just to augment Andrew's answer, there was added the 
LOADED_IMAGE_DEVICE_PATH_PROTOCOL, which is essentially the concatenation of 
the device path associated with DeviceHandle and FilePath from the 
EFI_LOADED_IMAGE_PROTOCOL. It is also installed on the ImageHandle. See section 
8 of the UEFI specification.

Tim

-----Original Message-----
From: Andrew Fish [mailto:[email protected]] 
Sent: Wednesday, August 14, 2013 12:17 PM
To: [email protected]
Subject: Re: [edk2] Is there an Implied OpenVolume ?


On Aug 14, 2013, at 12:05 PM, David F. <[email protected]> wrote:

> Hi,
> 
> I didn't see anything in the system table to indicate there may be an 
> implied open volume available that would be the booted UEFI system
> partition.   Say you have 10 HD's in the system all with an UEFI
> system partition, how do you know which one was booted (the one the 
> program image is running from)?
> 

In EFI you use the gEfiLoadedImageProtocolGuid on the ImageHandle (the one 
passed into your entry point) to figure out where you were loaded from.  See 
EFI_LOADED_IMAGE_PROTOCOL. DeviceHandle and EFI_LOADED_IMAGE_PROTOCOL. FilePath.

https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/MdePkg/Include/Protocol/LoadedImage.h

Thanks,

Andrew Fish

> TIA!!
> 
> ----------------------------------------------------------------------
> -------- Get 100% visibility into Java/.NET code with AppDynamics 
> Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead. 
> Download for free and get started troubleshooting in minutes. 
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c
> lktrk _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to