mirror of https://github.com/acidanthera/audk.git
Modified for use reversion field and fix a typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8006 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5755841f2a
commit
9e9f86ecb6
|
@ -599,10 +599,10 @@ PartitionInstallChildHandle (
|
|||
Private->ParentBlockIo = ParentBlockIo;
|
||||
Private->DiskIo = ParentDiskIo;
|
||||
|
||||
Private->BlockIo.Revision = EFI_BLOCK_IO_PROTOCOL_REVISION;
|
||||
Private->BlockIo.Revision = ParentBlockIo->Revision;
|
||||
|
||||
Private->BlockIo.Media = &Private->Media;
|
||||
CopyMem (Private->BlockIo.Media, ParentBlockIo->Media, sizeof (EFI_BLOCK_IO_MEDIA));
|
||||
CopyMem (Private->BlockIo.Media, ParentBlockIo->Media, SIZE_OF_EFI_BLOCK_IO_MEDIA_REV1);
|
||||
Private->Media.LogicalPartition = TRUE;
|
||||
Private->Media.LastBlock = DivU64x32 (
|
||||
MultU64x32 (
|
||||
|
|
|
@ -86,6 +86,9 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gPartitionComponentName2;
|
|||
(((UINT8 *) a)[3] << 24) )
|
||||
|
||||
|
||||
#define SIZE_OF_EFI_BLOCK_IO_MEDIA_REV1 ((UINTN)&((EFI_BLOCK_IO_MEDIA *)0)->LastBlock + sizeof(EFI_LBA))
|
||||
#define SIZE_OF_EFI_BLOCK_IO_MEDIA_REV2 sizeof(EFI_BLOCK_IO_MEDIA)
|
||||
|
||||
//
|
||||
// GPT Partition Entry Status
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue