diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-08 06:11:33 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-08-08 06:11:33 +0000 |
commit | a9bfd8029dd77c2efbdbdaf714a1a4ed9d2dd9bb (patch) | |
tree | 6f7b6723c04bd71766f8fa2608b71fdfeedd0e5d /MdeModulePkg | |
parent | 1439777e96797cbf92e9748bd9b8ed1316099e3d (diff) | |
download | edk2-platforms-a9bfd8029dd77c2efbdbdaf714a1a4ed9d2dd9bb.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/Pei/Image/Image.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c index 6ac537b42f..555ebe3fb3 100644 --- a/MdeModulePkg/Core/Pei/Image/Image.c +++ b/MdeModulePkg/Core/Pei/Image/Image.c @@ -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;
}
|