]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/PlatformPei/PlatformPei.inf
OvmfPkg: implement LockBoxLib
authorLaszlo Ersek <lersek@redhat.com>
Tue, 4 Mar 2014 08:03:23 +0000 (08:03 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 4 Mar 2014 08:03:23 +0000 (08:03 +0000)
commit6a7cba79b7b6d58f79a01bf29c900cb3ca6b5187
treee9b46938100fd90096639dc2963b205e117e28f4
parent5fb6fc0f0538af2927905090c26a72d4de4112a4
OvmfPkg: implement LockBoxLib

The S3 suspend/resume infrastructure depends on the LockBox library class.
The edk2 tree currently contains Null and SMM instances. The Null instance
is useless, and the SMM instance would require SMM emulation by including
the SMM core and adding several new drivers, which is deemed too complex.

Hence add a simple LockBoxLib instance for OVMF.

jordan.l.justen@intel.com:
 * use PCDs instead of EmuNvramLib
   - clear memory in PlatformPei on non S3 boots
 * allocate NVS memory and store a pointer to that memory
   - reduces memory use at fixed locations

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15301 6f19259b-4bc3-4df7-8a09-765794883524
15 files changed:
OvmfPkg/Library/LockBoxLib/LockBoxBase.c [new file with mode: 0644]
OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf [new file with mode: 0644]
OvmfPkg/Library/LockBoxLib/LockBoxDxe.c [new file with mode: 0644]
OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf [new file with mode: 0644]
OvmfPkg/Library/LockBoxLib/LockBoxLib.c [new file with mode: 0644]
OvmfPkg/Library/LockBoxLib/LockBoxLib.h [new file with mode: 0644]
OvmfPkg/OvmfPkg.dec
OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg/OvmfPkgIa32.fdf
OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/OvmfPkgIa32X64.fdf
OvmfPkg/OvmfPkgX64.dsc
OvmfPkg/OvmfPkgX64.fdf
OvmfPkg/PlatformPei/MemDetect.c
OvmfPkg/PlatformPei/PlatformPei.inf