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:
lgao4 2008-08-08 06:11:33 +00:00
parent 1439777e96
commit a9bfd8029d
1 changed files with 11 additions and 1 deletions

View File

@ -72,7 +72,17 @@ PeiImageRead (
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;
}