MdePkg/UefiImageLib: Deprecate GetImageSizeInplace()

This commit is contained in:
Marvin Häuser 2023-06-15 10:48:01 +02:00 committed by MikhailKrichanov
parent fee5405eaf
commit 5055709a2c
7 changed files with 1 additions and 57 deletions

View File

@ -497,19 +497,6 @@ PeCoffGetSizeOfImage (
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *Context
);
/**
Retrieves the size, in Bytes, of the Image memory space for in-place loading.
@param[in,out] Context The context describing the Image. Must have been
initialised by PeCoffInitializeContext().
@returns The size of the Image memory space for in-place loading.
**/
UINT32
PeCoffGetSizeOfImageInplace (
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *Context
);
/**
Retrieves the Image preferred load address.

View File

@ -533,12 +533,6 @@ UefiImageGetImageSize (
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
);
// FIXME: Docs
UINT32
UefiImageGetImageSizeInplace (
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
);
/**
Retrieves the Image preferred load address.

View File

@ -70,16 +70,6 @@ PeCoffGetSizeOfImage (
return Context->SizeOfImage;
}
UINT32
PeCoffGetSizeOfImageInplace (
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *Context
)
{
ASSERT (Context != NULL);
return Context->SizeOfImage;
}
UINT64
PeCoffGetImageBase (
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *Context

View File

@ -30,7 +30,7 @@ UefiImageRelocateImageInplaceForExecution (
}
ImageAddress = UefiImageLoaderGetImageAddress (Context);
ImageSize = UefiImageGetImageSizeInplace (Context);
ImageSize = UefiImageGetImageSize (Context);
//
// Flush the instruction cache so the image data is written before
// execution.

View File

@ -212,14 +212,6 @@ UefiImageGetImageSizePe (
return PeCoffGetSizeOfImage (&Context->Ctx.Pe);
}
UINT32
UefiImageGetImageSizeInplacePe (
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
)
{
return PeCoffGetSizeOfImageInplace (&Context->Ctx.Pe);
}
UINT64
UefiImageGetPreferredAddressPe (
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
@ -763,7 +755,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST UEFI_IMAGE_FORMAT_SUPPORT mPeSupport = {
UefiImageGetSubsystemPe,
UefiImageGetSegmentAlignmentPe,
UefiImageGetImageSizePe,
UefiImageGetImageSizeInplacePe,
UefiImageGetPreferredAddressPe,
UefiImageGetRelocsStrippedPe,
UefiImageLoaderGetImageAddressPe,

View File

@ -229,7 +229,6 @@ typedef struct {
UEFI_IMAGE_GET_SUBSYSTEM GetSubsystem;
UEFI_IMAGE_GET_SEGMENT_ALIGNMENT GetSegmentAlignment;
UEFI_IMAGE_GET_IMAGE_SIZE GetImageSize;
UEFI_IMAGE_GET_IMAGE_SIZE_INPLACE GetImageSizeInplace;
UEFI_IMAGE_GET_PREFERRED_ADDRESS GetPreferredAddress;
UEFI_IMAGE_GET_RELOCS_STRIPPED GetRelocsStripped;
UEFI_IMAGE_LOADER_GET_IMAGE_ADDRESS LoaderGetImageAddress;

View File

@ -514,23 +514,6 @@ UefiImageGetImageSize (
return Result;
}
UINT32
UefiImageGetImageSizeInplace (
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
)
{
UINT32 Result;
UEFI_IMAGE_EXEC (
Result,
Context->FormatIndex,
GetImageSizeInplace,
Context
);
return Result;
}
UINT64
UefiImageGetPreferredAddress (
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context