Leo - PatchableInModule is not what you want, you need DynamicEx. Although 
Dynamic would also work, I wouldn't recommend it.

PatchableInModule builds the value into the .exe data section. In this case, 
SetPcd only changes that module 's data, not the other modules data.

Tim

Sent from my Windows Phone
________________________________
From: Duran, Leo<mailto:leo.du...@amd.com>
Sent: ā€Ž5/ā€Ž5/ā€Ž2015 11:06 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] Question about SetPcd

I’m declaring a Pcd with some default value as [PcdsPatchableInModule.common], 
and here are my observations:

1)      In PEIM module1 after  SetPcdXX() with a new value and can read back 
the new value with GetPcdXX()

2)      However, from PEIM module2 (which runs later) GetPcdXX() returns the 
default declared value

Question: Is there a way to invoke SetPcdXX() so that the new value is 
persistent across modules?

Thanks,
Leo.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to