EFI_FVB_ATTRIBUTES_2 Attributes;\r
UINTN LbaAddress;\r
UINTN LbaLength;\r
- EFI_FW_VOL_INSTANCE *FwhInstance;\r
EFI_STATUS Status;\r
EFI_STATUS Status1;\r
\r
- FwhInstance = GetFvbInstance (Instance);\r
-\r
if ( (NumBytes == NULL) || (Buffer == NULL)) {\r
return (EFI_INVALID_PARAMETER);\r
}\r
{\r
EFI_FVB_ATTRIBUTES_2 Attributes;\r
UINTN LbaAddress;\r
- EFI_FW_VOL_INSTANCE *FwhInstance;\r
UINTN LbaLength;\r
EFI_STATUS Status;\r
\r
- //\r
- // Find the right instance of the FVB private data.\r
- //\r
- FwhInstance = GetFvbInstance (Instance);\r
-\r
//\r
// Check if the FV is write enabled.\r
//\r
break;\r
}\r
\r
- NumOfLba = VA_ARG (args, UINT32);\r
+ NumOfLba = VA_ARG (args, UINTN);\r
\r
//\r
// Check input parameters.\r
break;\r
}\r
\r
- NumOfLba = VA_ARG (args, UINT32);\r
+ NumOfLba = VA_ARG (args, UINTN);\r
\r
while ( NumOfLba > 0 ) {\r
Status = FvbEraseBlock (FvbDevice->Instance, StartingLba);\r
UINTN TmpHeaderLength;\r
UINTN Idx;\r
UINT32 MaxLbaSize;\r
- BOOLEAN FvHeaderValid;\r
\r
//\r
// Calculate the total size for all firmware volume block instances.\r
FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) BaseAddress;\r
\r
if (!IsFvHeaderValid (BaseAddress, FwVolHeader)) {\r
- FvHeaderValid = FALSE;\r
//\r
// If not valid, get FvbInfo from the information carried in\r
// FVB driver.\r