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.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
