On Mar 31, 2014, at 2:40 PM, manish mahajan <[email protected]> wrote:

> Hello,
> 
> I am new to Edk-II development. I tried hello world sample program provided 
> here: 
> http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=Getting_Started_Writing_Simple_Application
> 
> I am using arm-64 chip. I hooked MyHellowWorld.inf to 
> "tianocore/ArmPlatformPkg/<vendor>Pkg/Mustang-UHP.dsc. UHP image build is 
> successful. But when I load the new UEFI, I don't see my "hello world" print 
> on the console. I directly see UEFI bootup log and boot options.
> 
> Since, "UefiMain" is defined as an entry point, when this function will be 
> invoked? or do I need to manually call it from other function? My 
> understanding is that "ENTRY_POINT" in .inf is like main() function in C.
> 
> What should I do to make sure that UefiMain function is getting called?
> 

This makes sure your entry  point gets called:

https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdeModulePkg/Application/HelloWorld/HelloWorld.inf
  ENTRY_POINT                    = UefiMain

The actual entry point exists in (_ModuleEntryPoint hard coded in the linker 
flags) in a library:

[LibraryClasses]
  UefiApplicationEntryPoint
This library calls code in the build output file called AutoGen.c that calls 
your entry point. AutoGen.c is constructed by the build system and it knows 
your entry point name from parsing the INF. 

Thanks,

Andrew Fish

> Thanks,
> Manish
>  
> ------------------------------------------------------------------------------
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to