Fixed incorrect index number for DynamicEx PCD in PCD database.
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 13 Dec 2007 06:53:05 +0000 (06:53 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 13 Dec 2007 06:53:05 +0000 (06:53 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@922 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/AutoGen/GenC.py

index 2c0f187..99efaff 100644 (file)
@@ -1229,6 +1229,8 @@ def CreatePcdDatabasePhaseSpecificAutoGen (Platform, Phase):
         Dict['TOKEN_TYPE'][GeneratedTokenNumber] = ' | '.join(Pcd.TokenTypeList)\r
         if Pcd.Type in gDynamicExPcd:\r
             Dict['EXMAPPING_TABLE_EXTOKEN'].append(Pcd.TokenValue)\r
+            if Phase == 'DXE':\r
+                GeneratedTokenNumber += NumberOfPeiLocalTokens\r
             Dict['EXMAPPING_TABLE_LOCAL_TOKEN'].append(GeneratedTokenNumber)\r
             Dict['EXMAPPING_TABLE_GUID_INDEX'].append(GuidList.index(TokenSpaceGuid))\r
 \r