]> git.proxmox.com Git - mirror_edk2.git/commit
Fix the bug that build tool and PCD driver can not deal with byte array or ANSIC...
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 27 May 2009 11:34:11 +0000 (11:34 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 27 May 2009 11:34:11 +0000 (11:34 +0000)
commitd09651693b1de16a0e909a004172b73e888665ac
treef132cb90a9679e85fc2874ce0d5743feeeb05835
parenta81c3daf0a9cbad3f5333e264ecc3a365686f6ec
Fix the bug that build tool and PCD driver can not deal with byte array or ANSIC type value for dynamic PCD.
This patch including following change:
1) Build tools:
   a) StringTable in generated PCD database is changed to UINT8 array but not original UINT16, because it can also stored the ANSIC and byte array.
   b) The layout of string table in PCD database is changed. To make sure unicode string is in double byte aligned, the item in string table which hold unicode string value will be put ahead than other items. After unicode string item, the HII variable name item is immediate. The byte array item and ANSIC string array item will be put at tail of whole string table.
   c) Fix bug that build tools does not handle the size of unicode string, byte array and ANSIC string.
2) PCD PEI/DXE driver:
   The pointer of StringTable is changed to UINT8* but not original UINT16*.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8392 6f19259b-4bc3-4df7-8a09-765794883524
BaseTools/Bin/Win32/build.exe
MdeModulePkg/Universal/PCD/Dxe/Service.c
MdeModulePkg/Universal/PCD/Pei/Service.c