]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c
EMU Variable: Add support for pre-reserved NV variable store.
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 7 Sep 2009 20:18:14 +0000 (20:18 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 7 Sep 2009 20:18:14 +0000 (20:18 +0000)
commit02328a57a216efd3ff301187f5c718122185d2a2
tree3f2c5db286fd9191d550f9c7ebbf50306a20296f
parent2ca6377b5eb893bdff325b459dc2ddac99570a68
EMU Variable: Add support for pre-reserved NV variable store.

Add PcdEmuVariableNvStoreReserved which allows a platform to declare a
memory address for the EMU Variable driver to use for the NV variable
store.  The EMU Variable driver will look to see if the contents of
this memory range appear to be a valid variable store, and if so
the EMU driver will use the variables.

If a platform can preserve a memory range across system resets, this
feature can allow the EMU Variable driver's NV variable store to be
preserved across a system reset.

In the default case this PCD will be set as a fixed PCD with a value
of 0.  In this case this new feature should have minimal impact on
the EMU Variable driver.  (Perhaps a slight increase in code size,
but no functional difference is expected.)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9240 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf