EMU Variable: Add support for pre-reserved NV variable store.
commit41771f9765965833f915f5c35437d479dd8c62f0
authorJordan Justen <jljusten@tianocore.org>
Mon, 7 Sep 2009 20:18:14 +0000 (7 20:18 +0000)
committerJordan Justen <jljusten@tianocore.org>
Mon, 7 Sep 2009 20:18:14 +0000 (7 20:18 +0000)
tree3f2c5db286fd9191d550f9c7ebbf50306a20296f
parent0740b1e5bb0e23cb6af0a45dd80848e3b78c47c8
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.)
MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf