PcdLib LibPcdGetSize() and LibPcdGetExSize() are type specific API. New 
generic PcdGetSize() API will be added to reterieve the size of PCD value. 
Like PcdGetValue(), it supports all PCD types and all PCD data types. 

BaseTools generates PCD size macros in AutoGen code. 
MdePkg PcdLib adds PcdGetSize() APIs to match those generated macros. 
Modules use PcdGetSize() API to replace LibPcdGetSize() and LibPcdGetExSize() 
APIs.

Liming Gao (6):
  BaseTools: Generate macro for the size of PCD value
  BaseTools: Fix AutoGen issue for Patchable VOID* PCD.
  BaseTools: Update SetPcdPtr in AutoGen Code
  MdePkg: Add four PcdGetSize() API in PcdLib
  MdePkg: Add two PcdApi for Patch VOID* PCD set operation.
  SecurityPkg: Use PcdGetSize to get the size of VOID* PCD value.

 BaseTools/Source/Python/AutoGen/GenC.py            |  82 +++++++++++--
 MdePkg/Include/Library/PcdLib.h                    | 133 ++++++++++++++++++++-
 MdePkg/Library/DxePcdLib/DxePcdLib.c               | 111 +++++++++++++++++
 MdePkg/Library/PeiPcdLib/PeiPcdLib.c               | 111 +++++++++++++++++
 .../DxeRsa2048Sha256GuidedSectionExtractLib.c      |   4 +-
 .../DxeRsa2048Sha256GuidedSectionExtractLib.inf    |   4 +-
 .../PeiRsa2048Sha256GuidedSectionExtractLib.c      |   4 +-
 .../PeiRsa2048Sha256GuidedSectionExtractLib.inf    |   2 +-
 8 files changed, 432 insertions(+), 19 deletions(-)

-- 
1.9.5.msysgit.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to