]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
OvmfPkg: QemuFwCfgLib: extract stateful implementation
authorLaszlo Ersek <lersek@redhat.com>
Fri, 3 Jan 2014 19:57:26 +0000 (19:57 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 3 Jan 2014 19:57:26 +0000 (19:57 +0000)
commit2ce7e221e70214b094e2e54d0e6dc9491a742dd3
treefbf13ce33ddf48b565ff6d20a60fb71cbf04d094
parent0dc231c9bd1a5aecfbcd373a50dc348a5dfbd38a
OvmfPkg: QemuFwCfgLib: extract stateful implementation

The current implementation of QemuFwCfgLib is:
- stateful
- implicitly initialized in the library constructor.

OVMF's SEC runs from read-only memory/flash. When the library is linked
into a SEC binary (which currently never happens), the
"mQemuFwCfgSupported" global variable becomes read-only, making the
library non-functional.

Extract the stateful, implicitly initialized library implementation into a
separate file, making room for a stateless, explicitly queried
implementation that's usable in SEC. Restrict the stateful implementation
to the current, non-SEC clients.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15045 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiDxe.c [new file with mode: 0644]