On Feb 26, 2014, at 4:22 PM, John Davis <davi...@gmail.com> wrote: > I'm trying to mimic some existing code. I have > gEfiFirmwareVolumeProtocolGuid in my .efi [Protocols] section and previous > gBS->HandleProtocol calls work. > > EFI_STATUS Status; > UINTN HandleCount; > EFI_HANDLE *HandleBuffer; > > // MdePkg/Include/Uefi/UefiSpec.h has a struct for BootServices which > is of type EFI_BOOT_SERVICES > // I think gBS is is a pointer to this table. Not only does it have a > entry for HandleProtocol, it also > // has a entry for LocateHandleBuffer. Perhaps that will get me to the > routine which has types similar to the firmware volumes. > // > Status = gBS->LocateHandleBuffer(ByProtocol, > &gEfiFirmwareVolumeProtocolGuid, NULL, &HandleCount, &HandleBuffer); > Print(L"Status = %d\n", Status); > ASSERT_EFI_ERROR (Status); > > This code when run, will fail on the assert line with the following status in > the console. > ASSERT_EFI_ERROR (Status = Not Found) >
Your system is not a Tiano/IntelFramework system (older EDK code is like this) so it does not produce this protocol. The version if the PI spec is called gEfiFirmwareVolume2ProtocolGuid. https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Include/Protocol/FirmwareVolume2.h Thanks, Andrew Fish > -- > John F. Davis > 6 Kandes Court > Durham, NC 27713 > 919-888-8358 > > 独树一帜 > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk_______________________________________________ > edk2-devel mailing list > edk2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel