Integrated FV memory map into R9

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2158 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bxing
2006-12-31 09:55:05 +00:00
parent 8733430b83
commit a3ab2a47d9
4 changed files with 100 additions and 138 deletions

View File

@@ -799,9 +799,10 @@ Returns:
//
fprintf (
LogFile,
"%s %016I64X\n",
"%s %016I64X %s\n",
FileGuidString,
ImageContext.DestinationAddress
ImageContext.DestinationAddress,
ImageContext.PdbPointer == NULL ? "*" : ImageContext.PdbPointer
);
*BaseToUpdate += EFI_SIZE_TO_PAGES (ImageContext.ImageSize) * EFI_PAGE_SIZE;
@@ -1136,8 +1137,6 @@ Returns:
GetLength (CurrentPe32Section.Pe32Section->CommonHeader.Size) - sizeof (EFI_PE32_SECTION) -
sizeof (EFI_TE_IMAGE_HEADER)
);
free ((VOID *) MemoryImagePointer);
free (TEBuffer);
if (FfsFile->Attributes & FFS_ATTRIB_TAIL_PRESENT) {
TailSize = sizeof (EFI_FFS_FILE_TAIL);
} else {
@@ -1171,10 +1170,17 @@ Returns:
fprintf (
LogFile,
"%s %016I64X\n",
"%s %016I64X %s\n",
FileGuidString,
ImageContext.DestinationAddress
ImageContext.DestinationAddress,
ImageContext.PdbPointer == NULL ? "*" : ImageContext.PdbPointer
);
//
// Free buffers
//
free ((VOID *) MemoryImagePointer);
free (TEBuffer);
}
return EFI_SUCCESS;