I am not calling any EFI service from the AP.

The call to printf is done by the BSP immediately after StartUpThisAP()
completes.

 

From: Andrew Fish [mailto:[email protected]] 
Sent: Tuesday, April 23, 2013 3:57 PM
To: [email protected]
Subject: Re: [edk2] Multi-threading issue

 

It is not safe to call any EFI service from the AP, as they are not MP safe
by definition. So any C Lib function that that calls any system service is
thus not legal to use on the AP. 

 

Thanks,

 

Andrew Fish

 

 

On Apr 23, 2013, at 8:51 AM, "Shalev, Tomer" <[email protected]> wrote:





Hello,

 

I wrote a small UEFI application that tests StartupThisAP() of Framework EFI
MpService. There are two tests in the application. Test1 runs
StartupThisAP() in blocking mode, and Test2 in non-blocking mode. Both tests
pass, but.

 

I noticed that if I call printf() (stdlib's printf) immediately following
the call to StartupThisAP() in Test2 (see lines 176-177), then the
application halts. It seems that the AP does not execute the procedure
passed to StartupThisAP(), rather it jumps to some other code and enters
infinite loop.

I don't know if my usage is wrong or whether I hit some UEFI but, so I am
asking your help in solving this issue.

 

The password for the ZIP file that contains the source code of the package
is 12345678.

 

I would appreciate any help.

 

Thanks,

Tomer

<MpTestPkg.zip>

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

----------------------------------------------------------------------------
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt!
<http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________
________>
http://p.sf.net/sfu/newrelic_d2d_apr________________________________________
_______
edk2-devel mailing list
 <mailto:[email protected]> [email protected]
 <https://lists.sourceforge.net/lists/listinfo/edk2-devel>
https://lists.sourceforge.net/lists/listinfo/edk2-devel

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to