mirror of https://github.com/acidanthera/audk.git
Enhance the code logic for RelocateBlockDescriptors.
Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13306 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
31abeada42
commit
5d4f8cf3c9
|
@ -408,12 +408,11 @@ RelocateBlockDescriptors (
|
|||
}
|
||||
|
||||
CopyMem ((VOID *) RelocBuffer, (VOID *) (UINTN) TempBlockDesc->Union.DataBlock, (UINTN) TempBlockDesc->Length);
|
||||
TempBlockDesc->Union.DataBlock = (EFI_PHYSICAL_ADDRESS) (UINTN) RelocBuffer;
|
||||
|
||||
DEBUG ((EFI_D_INFO, "Capsule relocate descriptors from/to/size 0x%X 0x%X 0x%X\n", (UINT32)(UINTN)TempBlockDesc->Union.DataBlock, (UINT32)(UINTN)RelocBuffer, (UINT32)(UINTN)TempBlockDesc->Length));
|
||||
TempBlockDesc->Union.DataBlock = (EFI_PHYSICAL_ADDRESS) (UINTN) RelocBuffer;
|
||||
}
|
||||
TempBlockDesc++;
|
||||
}
|
||||
TempBlockDesc++;
|
||||
}
|
||||
//
|
||||
// Now go through all the block descriptors to make sure that they're not
|
||||
|
|
Loading…
Reference in New Issue