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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user