Re: [edk2] gBS->LocateProtocol

2013-12-03 Thread Nishit Patira
anks, > > 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 i

Re: [edk2] gBS->LocateProtocol

2013-12-02 Thread Nishit Patira
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 wrote: > On Sat, Nov 30, 2013 at 10:35 AM, Nishit Patira > wrote: > > Hii, > > > > Yes, it is by a DXE Driver. Howe

Re: [edk2] gBS->LocateProtocol

2013-11-30 Thread Nishit Patira
Hii, Yes, it is by a DXE Driver. However, it is not returning anything. Regards, Nishit H Patira 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 a

[edk2] gBS->LocateProtocol

2013-11-29 Thread Nishit Patira
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 n

[edk2] StrHexToUint64 function

2013-11-29 Thread Nishit Patira
6 *)argv[1]) ; printf("%d",PhyAddress);. The output is: 123456 0 (i.e, the API makes PhyAddress =0) Can some one tell me how to fix this? Regards, Nishit Patira -- Rapidly troubleshoot problems before they affect

Re: [edk2] Entry Point While Using int main (argc, **argv)

2013-11-28 Thread Nishit Patira
to get around this problem?? Regards, Nishit Patira On Fri, Nov 29, 2013 at 9:22 AM, Jordan Justen wrote: > On Thu, Nov 28, 2013 at 5:00 AM, s.v.krishna reddy > wrote: > > Your Pkg dsc does not have definition of LibC, that you are mentioning in > > .inf file. Can you

Re: [edk2] Entry Point While Using int main (argc, **argv)

2013-11-28 Thread Nishit Patira
I am trying to build the code in Main.inf. But it is giving the error 4000 : Instance of Library Class [LibC] is not found in ..\Main.inf . Even though that library class is mentioned in the [LibraryClasses] in Main.inf --

[edk2] Entry Point While Using int main (argc, **argv)

2013-11-28 Thread Nishit Patira
Hi, I am writing the code in my uefi application file (gigo.c). The code starts with int main (int argc, char **argv) { UINT64 PhyAddress = 0; FILE*infile; . . . . Now, what should I write in my .inf file for ENTRY_POINT. This is my [defines] section INF_VERSION = 0x000100

[edk2] Taking Data from .txt file in EDK II

2013-10-19 Thread Nishit Patira
Hi, Can someone give an example code for an uefi application where data is taken from another text file. Regards, Nishit H Patira -- October Webinars: Code for Performance Free Intel webinars can help you accelerate appli

Re: [edk2] error LNK2001: unresolved external symbol _ModuleEntryPoint

2013-10-18 Thread Nishit Patira
if(SI->Argc != 2) { Print(L"\nInvalid arguments. "); ExitProgram(); } Regards, Nishit Patira On Fri, Oct 18, 2013 at 2:12 PM, Li, Elvin wrote: > MdePkg\Library\UefiApplicationEntryPoint definitely implements > _ModuleEntryPoint, so link error se

Re: [edk2] error LNK2001: unresolved external symbol _ModuleEntryPoint

2013-10-18 Thread Nishit Patira
I added the library class UefiApplicationEntryPoint in INF file and in C file . Yet, the error still persists Regards, Nishit Patira On Fri, Oct 18, 2013 at 12:39 PM, Li, Elvin wrote: > Do you do this in your code? > > **1. **UefiApplicationEntryPoint in [LibraryClasses] i

Re: [edk2] error LNK2001: unresolved external symbol _ModuleEntryPoint

2013-10-17 Thread Nishit Patira
EFI_BOOTSHELL EFI_APPLICATION_ENTRY_POINT(_ModuleEntryPoint) #endif EFI_STATUS EFIAPI _ModuleEntryPoint( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) Sorry for the gaffe. Thanks & Regards, Nishit Patira On Fri, Oct 18, 2013 at 12:02 PM, Nishit Patira w

[edk2] error LNK2001: unresolved external symbol _ModuleEntryPoint

2013-10-17 Thread Nishit Patira
, if I change the code to #ifdef EFI_BOOTSHELL EFI_APPLICATION_ENTRY_POINT(*_ModuleEntryPoint*) #endif the application compiles. Could you please tell why this is happening. Regards, Nishit Patira -- October Webinars

[edk2] Take Data from a .txt file in EDK II

2013-10-12 Thread Nishit Patira
Hi, I am writing an application in EDK II where I need to take a string from source.txt, do certain operations on it, and store the final value in destination.txt Can you tell me which header file should be included for the file operations? Regards, Nishit Patira