Andrew, Daryl,
Thank you for the quick reply.

Thanks,
Mohammad.

From: Mcdaniel, Daryl [mailto:[email protected]]
Sent: Tuesday, December 18, 2012 12:06 AM
To: [email protected]
Cc: Oren Kladnitsky; Yossef Efraim
Subject: Re: [edk2] Compiling UEFI_DRIVER with LIBC functions

Andrew is correct, LibC depends upon the EFI Shell being present.

The current implementation of StdLib Is a "hosted" implementation, as defined 
by the C language specification ISO/IEC 9899:199409 (C95).  It depends upon 
UEFI Boot services, as well as the Shell, to provide low-level support that may 
not be available at the time drivers are loaded.  There was no effort made to 
separate any individual functions from this dependency.

Removing as many interdependencies as possible as well as producing a 
standalone implementation has been discussed, but nothing is officially 
scheduled.

Just as Operating Systems require a special version of the C libraries for 
device driver and kernel use, so does EDK II.  Currently, this does not exist.


Daryl McDaniel

"Software is like entropy.
 It is difficult to grasp, weighs nothing, and obeys the second law of 
thermodynamics;
 i.e. it always increases."
-- Norman R. Augustine


________________________________
From: Andrew Fish [mailto:[email protected]]<mailto:[mailto:[email protected]]>
Sent: Monday, December 17, 2012 10:57 AM
To: [email protected]<mailto:[email protected]>
Cc: Oren Kladnitsky; Yossef Efraim
Subject: Re: [edk2] Compiling UEFI_DRIVER with LIBC functions
It looks like the libc depends on the edk2 shell being present.

Andrew Fish


On Dec 17, 2012, at 8:05 AM, Mohammad Sawalha 
<[email protected]<mailto:[email protected]>> wrote:


Hi,
I'm trying to port C-code in edk2 environments to use it in a driver that burns 
FW.
The compilation worked fine but the load/unload driver failed as you can see in 
the following picture:
<image001.png>
AutoGen.c:
237: Status = ShellLibConstructor (ImageHandle, SystemTable);
238: ASSERT_EFI_ERROR (Status);
Do you have any idea why this issue may happen ?
Your help is much appreciated!
Thanks in advance,
Mohammad.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d_______________________________________________
edk2-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to