]> git.proxmox.com Git - mirror_edk2.git/commit
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)
commitc73cf875524666582343a479665e0469444a38c8
tree8445e15cafbfe51a58c613cf2cf383dd962bef37
parentcc0b456a05f8dd1ebfb9be485465be37e96999e7
MdeModulePkg PCD: Avoid DynamicHii PCD set to override other values

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>
MdeModulePkg/Universal/PCD/Dxe/Service.c