mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-25 18:48:42 +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
|
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.
|
Retrieves the Image preferred load address.
|
||||||
|
|
||||||
|
@ -533,12 +533,6 @@ UefiImageGetImageSize (
|
|||||||
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
|
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.
|
Retrieves the Image preferred load address.
|
||||||
|
|
||||||
|
@ -70,16 +70,6 @@ PeCoffGetSizeOfImage (
|
|||||||
return Context->SizeOfImage;
|
return Context->SizeOfImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT32
|
|
||||||
PeCoffGetSizeOfImageInplace (
|
|
||||||
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *Context
|
|
||||||
)
|
|
||||||
{
|
|
||||||
ASSERT (Context != NULL);
|
|
||||||
|
|
||||||
return Context->SizeOfImage;
|
|
||||||
}
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
PeCoffGetImageBase (
|
PeCoffGetImageBase (
|
||||||
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *Context
|
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *Context
|
||||||
|
@ -30,7 +30,7 @@ UefiImageRelocateImageInplaceForExecution (
|
|||||||
}
|
}
|
||||||
|
|
||||||
ImageAddress = UefiImageLoaderGetImageAddress (Context);
|
ImageAddress = UefiImageLoaderGetImageAddress (Context);
|
||||||
ImageSize = UefiImageGetImageSizeInplace (Context);
|
ImageSize = UefiImageGetImageSize (Context);
|
||||||
//
|
//
|
||||||
// Flush the instruction cache so the image data is written before
|
// Flush the instruction cache so the image data is written before
|
||||||
// execution.
|
// execution.
|
||||||
|
@ -212,14 +212,6 @@ UefiImageGetImageSizePe (
|
|||||||
return PeCoffGetSizeOfImage (&Context->Ctx.Pe);
|
return PeCoffGetSizeOfImage (&Context->Ctx.Pe);
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT32
|
|
||||||
UefiImageGetImageSizeInplacePe (
|
|
||||||
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return PeCoffGetSizeOfImageInplace (&Context->Ctx.Pe);
|
|
||||||
}
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
UefiImageGetPreferredAddressPe (
|
UefiImageGetPreferredAddressPe (
|
||||||
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
|
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
|
||||||
@ -763,7 +755,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST UEFI_IMAGE_FORMAT_SUPPORT mPeSupport = {
|
|||||||
UefiImageGetSubsystemPe,
|
UefiImageGetSubsystemPe,
|
||||||
UefiImageGetSegmentAlignmentPe,
|
UefiImageGetSegmentAlignmentPe,
|
||||||
UefiImageGetImageSizePe,
|
UefiImageGetImageSizePe,
|
||||||
UefiImageGetImageSizeInplacePe,
|
|
||||||
UefiImageGetPreferredAddressPe,
|
UefiImageGetPreferredAddressPe,
|
||||||
UefiImageGetRelocsStrippedPe,
|
UefiImageGetRelocsStrippedPe,
|
||||||
UefiImageLoaderGetImageAddressPe,
|
UefiImageLoaderGetImageAddressPe,
|
||||||
|
@ -229,7 +229,6 @@ typedef struct {
|
|||||||
UEFI_IMAGE_GET_SUBSYSTEM GetSubsystem;
|
UEFI_IMAGE_GET_SUBSYSTEM GetSubsystem;
|
||||||
UEFI_IMAGE_GET_SEGMENT_ALIGNMENT GetSegmentAlignment;
|
UEFI_IMAGE_GET_SEGMENT_ALIGNMENT GetSegmentAlignment;
|
||||||
UEFI_IMAGE_GET_IMAGE_SIZE GetImageSize;
|
UEFI_IMAGE_GET_IMAGE_SIZE GetImageSize;
|
||||||
UEFI_IMAGE_GET_IMAGE_SIZE_INPLACE GetImageSizeInplace;
|
|
||||||
UEFI_IMAGE_GET_PREFERRED_ADDRESS GetPreferredAddress;
|
UEFI_IMAGE_GET_PREFERRED_ADDRESS GetPreferredAddress;
|
||||||
UEFI_IMAGE_GET_RELOCS_STRIPPED GetRelocsStripped;
|
UEFI_IMAGE_GET_RELOCS_STRIPPED GetRelocsStripped;
|
||||||
UEFI_IMAGE_LOADER_GET_IMAGE_ADDRESS LoaderGetImageAddress;
|
UEFI_IMAGE_LOADER_GET_IMAGE_ADDRESS LoaderGetImageAddress;
|
||||||
|
@ -514,23 +514,6 @@ UefiImageGetImageSize (
|
|||||||
return Result;
|
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
|
UINT64
|
||||||
UefiImageGetPreferredAddress (
|
UefiImageGetPreferredAddress (
|
||||||
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
|
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
|
||||||
|
Loading…
x
Reference in New Issue
Block a user