]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SmmLockBoxLib: Support LockBox enlarge in UpdateLockBox()
authorHao Wu <hao.a.wu@intel.com>
Tue, 4 Dec 2018 01:59:55 +0000 (09:59 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 22 Feb 2019 00:20:08 +0000 (08:20 +0800)
commit99383667abe1c2f83cc660f98fe7f3aa23bb7aa8
tree566acdee9baf70df6206ce2c696ea72ad1878cee
parent4fa7306bf5cd46aa8f98331de4c364c4a5380384
MdeModulePkg/SmmLockBoxLib: Support LockBox enlarge in UpdateLockBox()

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409

This commit will add the support to enlarge a LockBox when using the
LockBoxLib API UpdateLockBox().

Please note that the new support will ONLY work for LockBox with attribute
LOCK_BOX_ATTRIBUTE_RESTORE_IN_S3_ONLY set.

The functional uni-test for the commit is available at:
https://github.com/hwu25/edk2/tree/lockbox_unitest

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Include/Library/LockBoxLib.h
MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.c
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.c
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.c
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.c