mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-24 18:27:49 +02:00
MdePkg/UefiImageLib: Deprecate GetImageSizeInplace()
This commit is contained in:
parent
fee5405eaf
commit
5055709a2c
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user