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
This commit is contained in:
jljusten
2011-01-09 03:51:16 +00:00
parent 949b0f3b27
commit 3a4ddfc564
4 changed files with 145 additions and 4 deletions

View File

@@ -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;