/* Get a heathy FV header used for variable store recovery */
EFI_FIRMWARE_VOLUME_HEADER* GetFvHeaderTemplate(VOID)
/* Get a heathy FV header used for variable store recovery */
EFI_FIRMWARE_VOLUME_HEADER* GetFvHeaderTemplate(VOID)
{
  EFI_FIRMWARE_VOLUME_HEADER  *FvHeader;
  UINTN                       FvSize;
  FvSize                          = PcdGet32 (PcdFlashNvStorageFtwSpareSize) * 2;
  FvHeader                        = &mFvbMediaInfo.FvInfo;
  FvHeader->FvLength              = FvSize;
  FvHeader->BlockMap[0].NumBlocks = (UINT32)(FvSize / FvHeader->BlockMap[0].Length);
  FvHeader->Checksum              = 0;
  FvHeader->Checksum              = CalculateCheckSum16 ((UINT16 *)FvHeader, FvHeader->HeaderLength);
  return FvHeader;
}