]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg PCD: Avoid DynamicHii PCD set to override other values
authorStar Zeng <star.zeng@intel.com>
Thu, 19 May 2016 03:23:41 +0000 (11:23 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 20 Jun 2016 09:27:58 +0000 (17:27 +0800)
When Hii variable is not present and if we try to update a variable offset
with some value, we are creating a new variable by Zeroing all the variable
offsets except the one which we are trying to update.
This will override all the other variable default values which are
programmed as a part of initial PCD definition.

DXE PCD driver could be enhanced to combine the DynamicHii
PCDs(related to same variable) default values and only update the offset
PcdSetXXX want to set, then set the combined values to variable.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

No differences found