Roll back PeiImageRead to original implementation, this function will be shadowed, so it can't be replaced by CopyMem Api.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5622 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -72,7 +72,17 @@ PeiImageRead (
|
|||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
CopyMem (Buffer, (VOID *)((UINTN) FileHandle + FileOffset), *ReadSize);
|
CHAR8 *Destination8;
|
||||||
|
CHAR8 *Source8;
|
||||||
|
UINTN Length;
|
||||||
|
|
||||||
|
Destination8 = Buffer;
|
||||||
|
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);
|
||||||
|
Length = *ReadSize;
|
||||||
|
while (Length--) {
|
||||||
|
*(Destination8++) = *(Source8++);
|
||||||
|
}
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user