mirror of https://github.com/acidanthera/audk.git
Fix the bug that the "Offset" parameter for DiskIo protocol should be byte-oriented.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8175 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1cea34d4a8
commit
7059dad904
|
@ -100,7 +100,7 @@ PartitionInstallElToritoChildHandles (
|
|||
Status = DiskIo->ReadDisk (
|
||||
DiskIo,
|
||||
Media->MediaId,
|
||||
VolDescriptorLba,
|
||||
MultU64x32 (VolDescriptorLba, Media->BlockSize),
|
||||
Media->BlockSize,
|
||||
VolDescriptor
|
||||
);
|
||||
|
@ -143,7 +143,7 @@ PartitionInstallElToritoChildHandles (
|
|||
Status = DiskIo->ReadDisk (
|
||||
DiskIo,
|
||||
Media->MediaId,
|
||||
Lba,
|
||||
MultU64x32 (Lba, Media->BlockSize),
|
||||
Media->BlockSize,
|
||||
Catalog
|
||||
);
|
||||
|
|
|
@ -296,12 +296,12 @@ PartitionInstallGptChildHandles (
|
|||
}
|
||||
|
||||
Status = DiskIo->ReadDisk (
|
||||
DiskIo,
|
||||
BlockIo->Media->MediaId,
|
||||
MultU64x32(PrimaryHeader->PartitionEntryLBA, BlockSize),
|
||||
PrimaryHeader->NumberOfPartitionEntries * (PrimaryHeader->SizeOfPartitionEntry),
|
||||
PartEntry
|
||||
);
|
||||
DiskIo,
|
||||
BlockIo->Media->MediaId,
|
||||
MultU64x32(PrimaryHeader->PartitionEntryLBA, BlockSize),
|
||||
PrimaryHeader->NumberOfPartitionEntries * (PrimaryHeader->SizeOfPartitionEntry),
|
||||
PartEntry
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
GptValidStatus = Status;
|
||||
DEBUG ((EFI_D_ERROR, " Partition Entry ReadDisk error\n"));
|
||||
|
@ -436,7 +436,7 @@ PartitionValidGptTable (
|
|||
Status = DiskIo->ReadDisk (
|
||||
DiskIo,
|
||||
BlockIo->Media->MediaId,
|
||||
Lba,
|
||||
MultU64x32 (Lba, BlockSize),
|
||||
BlockSize,
|
||||
PartHdr
|
||||
);
|
||||
|
|
|
@ -242,7 +242,7 @@ PartitionInstallMbrChildHandles (
|
|||
Status = DiskIo->ReadDisk (
|
||||
DiskIo,
|
||||
BlockIo->Media->MediaId,
|
||||
ExtMbrStartingLba,
|
||||
MultU64x32 (ExtMbrStartingLba, BlockIo->Media->BlockSize),
|
||||
BlockIo->Media->BlockSize,
|
||||
Mbr
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue