History log of /device/linaro/bootloader/edk2/OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
56d7640a53bf23a4afa211c49b82527879edf65f 28-Apr-2010 hhtian <hhtian@6f19259b-4bc3-4df7-8a09-765794883524> Update the copyright notice format

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10439 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.c
9607962def9f847c243b9fecb590c0cf94eec4fc 26-Sep-2009 jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> OVMF: Add support for saving the NV variables to disk following each SetVariable call.

Note:
* This only works before ExitBootServices
* For OVMF, variables are only preserved on the disk if there
is a hard disk connected which has a writeable FAT file system.

The Ovmf/Library/EmuVariableFvbLib library will look for the
gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent PCD to be set to
a non-zero value. If set, it is treated as an event handle, and
each write to the EmuVariableFvb will cause the event to be
signaled.

In this change, the OVMF platform BDS library sets up this event,
and sets the PCD so that after each write to the EMU Variable FVB,
the non-volatile variables will be saved out to the file system.

The end result is that NV variables that are written prior to the
ExitBootServices call should be preserved by storing them on the
disk.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9318 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.c
50944545795641de735586d4803f8fc38b43874e 16-Sep-2009 jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> Implement NvVarsFileLib to save and restore non-volatile variables using a file.

This library provides an interface where variables can be saved and restored
using a file in a file system accessible to the firmware. It is expected
that a platform BDS library will use this library. The platform BDS
implementation can decide which devices to connect and then to attempt to use
for saving and restoring NV variables.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9272 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.c