Hi Tim,

Thanks for reporting this issue.
We have caught this issue and will follow up to fix it.

Star
-----Original Message-----
From: Tim Lewis [mailto:[email protected]] 
Sent: Tuesday, August 06, 2013 1:17 AM
To: [email protected]
Subject: [edk2] PCD Database Issue #1: GetNextToken()

We are running into a number of PCD-related issues. I will break these into 
separate e-mails.

The GetNextToken (called by LibPcdGetNextToken) functions seem to be broken and 
only return the first instance indicated by a GUID. The following code fragment 
does not work .The root cause seems to be DxePcdGetNextToken() which assumes 
that the entries in the PCD database are sorted by GUID (they are not, see 
attached AutoGen.c). 

  PcdToken = 0;
   while (TRUE) {
     PcdToken = LibPcdGetNextToken(&gH2OFlashDevicePartNameGuid, PcdToken);
     if (PcdToken == 0) {
       break;
     }
     // do something 
     ...
    }



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to