OVMF: Convert from EmuVariableRuntimeDxe to VariableRuntimeDxe.
OVMF utilizes EmuVariableFvbRuntimeDxe to provide an emulated variable firmware volume block device for non-volatile variables. This allows the VariableRuntimeDxe and FaultTolerantWriteDxe to function without a real non-volatile backing store. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9317 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -172,11 +172,13 @@ ReserveEmuVariableNvStore (
|
||||
//
|
||||
VariableStore =
|
||||
(EFI_PHYSICAL_ADDRESS)(UINTN)
|
||||
AllocateRuntimePool (FixedPcdGet32(PcdVariableStoreSize));
|
||||
AllocateRuntimePool (
|
||||
2 * FixedPcdGet32(PcdFlashNvStorageFtwSpareSize)
|
||||
);
|
||||
DEBUG ((EFI_D_INFO,
|
||||
"Reserved variable store memory: 0x%lX; size: %dkb\n",
|
||||
VariableStore,
|
||||
FixedPcdGet32(PcdVariableStoreSize) / 1024
|
||||
(2 * FixedPcdGet32(PcdFlashNvStorageFtwSpareSize)) / 1024
|
||||
));
|
||||
PcdSet64 (PcdEmuVariableNvStoreReserved, VariableStore);
|
||||
}
|
||||
|
Reference in New Issue
Block a user