mirror of https://github.com/acidanthera/audk.git
FatPkg/FatPei: Fix build error
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian <feng.tian@intel.com> (based on FatPkg commit c20b33e706e0ce7ffd395dd5c48a13aa24ca77fb) [jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Mark Doran <mark.doran@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
8a467be153
commit
4819b3e8f0
|
@ -69,7 +69,8 @@ UpdateBlocksAndVolumes (
|
|||
EFI_PEI_SERVICES **PeiServices;
|
||||
|
||||
PeiServices = (EFI_PEI_SERVICES **) GetPeiServicesTablePointer ();
|
||||
|
||||
BlockIo2Ppi = NULL;
|
||||
BlockIoPpi = NULL;
|
||||
//
|
||||
// Clean up caches
|
||||
//
|
||||
|
@ -135,6 +136,10 @@ UpdateBlocksAndVolumes (
|
|||
if (EFI_ERROR (Status) || !Media2.MediaPresent) {
|
||||
continue;
|
||||
}
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].BlockIo2 = BlockIo2Ppi;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].InterfaceType = Media2.InterfaceType;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].LastBlock = Media2.LastBlock;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].BlockSize = Media2.BlockSize;
|
||||
} else {
|
||||
Status = BlockIoPpi->GetBlockDeviceMediaInfo (
|
||||
PeiServices,
|
||||
|
@ -145,9 +150,13 @@ UpdateBlocksAndVolumes (
|
|||
if (EFI_ERROR (Status) || !Media.MediaPresent) {
|
||||
continue;
|
||||
}
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].BlockIo = BlockIoPpi;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].DevType = Media.DeviceType;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].LastBlock = Media.LastBlock;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].BlockSize = (UINT32) Media.BlockSize;
|
||||
}
|
||||
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].IoAlign = 0;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].IoAlign = 0;
|
||||
//
|
||||
// Not used here
|
||||
//
|
||||
|
@ -155,17 +164,6 @@ UpdateBlocksAndVolumes (
|
|||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].PartitionChecked = FALSE;
|
||||
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].PhysicalDevNo = (UINT8) Index;
|
||||
if (BlockIo2) {
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].BlockIo2 = BlockIo2Ppi;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].InterfaceType = Media2.InterfaceType;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].LastBlock = Media2.LastBlock;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].BlockSize = Media2.BlockSize;
|
||||
} else {
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].BlockIo = BlockIoPpi;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].DevType = Media.DeviceType;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].LastBlock = Media.LastBlock;
|
||||
PrivateData->BlockDevice[PrivateData->BlockDeviceCount].BlockSize = (UINT32) Media.BlockSize;
|
||||
}
|
||||
PrivateData->BlockDeviceCount++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue