On Aug 3, 2012, at 3:39 AM, [email protected] wrote:

> Hello all,
>  
> I have a Timer Event handler in UEFI based GUI application. When timer event 
> is signaled, event handler is called. But control is not coming back to 
> normal application flow once handler function is over. It is getting hung in 
> the event handler end. TPL for Event handler is set to TPL_CALLBACK and for 
> application it is TPL_APPLICATION.
>  
> What could be the issue here?

1) Bad code in the event handler that is hanging or corrupting some other code 
that hangs. 
2) It is theoretically  possible that the timer events are so slow that you 
spend all your time in the event handlers and never make it back into the main 
code. 

There is only one main thread in EFI (the application) and no way to change 
that. The event callbacks are called in groups based on TPL (higher TPL first), 
as long as the TPL is higher than the restored TPL. 

The dispatch of events happens as a result of calls to gBS->RestoreTpl(), 
CoreRestoreTpl() in the edk2 DXE Core 
https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/MdeModulePkg/Core/Dxe/Event/Tpl.c


>  
> Regards,
> Himdeep
>  
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to