diff options
author | Star Zeng <star.zeng@intel.com> | 2019-01-12 16:31:51 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2019-01-24 10:52:33 +0800 |
commit | ebe34c96f473b9b7389f1f05a29c0bdb3fe36ac3 (patch) | |
tree | 1e974f6772583ff24338c54afb79aa2a1341be4a /BaseTools/Source/Python/Common/caching.py | |
parent | b59fd889acc43a34030c20241cfcf102b442e5bf (diff) | |
download | edk2-ebe34c96f473b9b7389f1f05a29c0bdb3fe36ac3.tar.gz edk2-ebe34c96f473b9b7389f1f05a29c0bdb3fe36ac3.tar.bz2 edk2-ebe34c96f473b9b7389f1f05a29c0bdb3fe36ac3.zip |
MdeModulePkg Variable: Remove CacheOffset in UpdateVariable()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323
Merge EmuVariable and Real variable driver.
CacheOffset could be removed in UpdateVariable() after
//
// update the memory copy of Flash region.
//
CopyMem (
(UINT8 *)mNvVariableCache + CacheOffset,
(UINT8 *)NextVariable, VarSize
);
is moved to be before mVariableModuleGlobal->NonVolatileLastVariableOffset
value is updated, like right before
mVariableModuleGlobal->NonVolatileLastVariableOffset +=
HEADER_ALIGN (VarSize);
Except for the movement above, the patch also capitalizes the first
character of "update the memory copy of Flash region".
This patch prepares for adding emulated variable NV mode
support in VariableRuntimeDxe.
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Julien Grall <julien.grall@arm.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/caching.py')
0 files changed, 0 insertions, 0 deletions