Re: [edk2] gBS->LocateProtocol

Subject: Re: [edk2] gBS->LocateProtocol

From: Jordan Justen <jljusten@gmail.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2013-11-30 21:42:05

On Sat, Nov 30, 2013 at 10:35 AM, Nishit Patira  wrote:
> Hii,
>
> Yes, it is by a DXE Driver. However, it is not returning anything.

I think you mean that it is returning an error. In other words, the
call returns, but EFI_ERROR (Status) shows an error was returned. ??

gEfiIntelDimmToolProtocolGuid is not a UEFI protocol, so it probably
is not surprising that it would not be found on your average UEFI
system. In that case, your application should exit indicating that it
was not found.

Are you sure it is being installed by a driver on the system you are
testing with? If so, then I guess you might double check that the
GUIDs match.

-Jordan

> On Sat, Nov 30, 2013 at 4:06 PM, Galla Rao  wrote:
>>
>> Is this Protocol installed by any DXE driver?
>> The Status should return EFI_NOT_FOUND atleast
>>
>>
>>
>> On Sat, Nov 30, 2013 at 12:28 PM, Nishit Patira 
>> wrote:
>>>
>>> Hi,
>>>
>>> I am writing an UEFI Application. I am using gBS_>LocateProtocol to
>>> return the instance where the protocl is found.
>>>
>>> EFI_STATUS Status;
>>> gBS = SystemTable->BootServices;
>>> Status = gBS->LocateProtocol (&gEfiIntelDimmToolProtocolGuid, NULL,(void
>>> **) &mDimmToolProtocol);
>>>
>>> However, the function is not returning anything.
>>>
>>> Could someone point out the error to me??
>>>
>>> Regards,
>>> Nishit H Patira
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>> organizations don't have a clear picture of how application performance
>>> affects their revenue. With AppDynamics, you get 100% visibility into
>>> your
>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>>> Pro!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> edk2-devel mailing list
>>> edk2-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel