From 3a4ddfc564d9b599d408a7d2d7992a51a5100e22 Mon Sep 17 00:00:00 2001 From: jljusten Date: Sun, 9 Jan 2011 03:51:16 +0000 Subject: OvmfPkg EMU FVB: Add 2 functions to PlatformFvbLib Add PlatformFvbDataRead and PlatformFvbBlocksErased functions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11241 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OvmfPkg/EmuVariableFvbRuntimeDxe') diff --git a/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c b/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c index 314dc987f9..4d01ec75da 100644 --- a/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c +++ b/OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c @@ -377,6 +377,8 @@ FvbProtocolEraseBlocks ( EraseSize, ERASED_UINT8 ); + VA_START (args, This); + PlatformFvbBlocksErased (This, args); } return EFI_SUCCESS; @@ -557,6 +559,7 @@ FvbProtocolRead ( if (*NumBytes > 0) { CopyMem (Buffer, FvbDataPtr, *NumBytes); + PlatformFvbDataRead (This, Lba, Offset, *NumBytes, Buffer); } return EFI_SUCCESS; -- cgit v1.2.3