Try removing "gBS = SystemTable->BootServices;" Your SystemTable global variable is not initialized, so that assignment is invalid. You should remove the SystemTable variable.
Since your .inf must already include UefiBootServicesTableLib, gBS should already be initialized for you. -Jordan On Tue, Dec 3, 2013 at 12:40 AM, Nishit Patira <nishitpat...@gmail.com> wrote: > Hi Ramesh, > > PFA the source code. > > > On Tue, Dec 3, 2013 at 11:39 AM, Ramesh R. <rame...@ami.com> wrote: >> >> Nishit, >> >> >> >> Could you please attach your draft source where the locate protocol >> works and doesn’t work. That might give us some idea where are going wrong. >> >> >> >> Thanks, >> >> Ramesh >> >> >> >> From: Nishit Patira [mailto:nishitpat...@gmail.com] >> Sent: Tuesday, December 03, 2013 9:39 AM >> >> >> To: edk2-devel@lists.sourceforge.net >> Subject: Re: [edk2] gBS->LocateProtocol >> >> >> >> Hi Justen, >> >> >> >> No, it is not even returning an error. The GUIDs match, I have verified >> them. >> >> Regards, >> >> Nishit >> >> >> >> On Sun, Dec 1, 2013 at 3:12 AM, Jordan Justen <jljus...@gmail.com> wrote: >> >> On Sat, Nov 30, 2013 at 10:35 AM, Nishit Patira <nishitpat...@gmail.com> >> 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 <gallagnv....@gmail.com> >> > 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 >> >> <nishitpat...@gmail.com> >> >> 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 >> >> >> >> The information contained in this message may be confidential and >> proprietary to American Megatrends, Inc. This communication is intended to >> be read only by the individual or entity to whom it is addressed or by their >> designee. If the reader of this message is not the intended recipient, you >> are on notice that any distribution of this message, in any form, is >> strictly prohibited. Please promptly notify the sender by reply e-mail or by >> telephone at 770-246-8600, and then delete or destroy all copies of the >> transmission. >> >> >> >> ------------------------------------------------------------------------------ >> 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