mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-21 16:57:44 +02:00
BaseTools/GenFvInternalLib: Remove unused BaseOfCode parameter
This commit is contained in:
parent
64a6723cdc
commit
adf1673ece
@ -1575,7 +1575,6 @@ Returns:
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_FILE_SECTION_POINTER Pe32Section;
|
EFI_FILE_SECTION_POINTER Pe32Section;
|
||||||
UINT32 EntryPoint;
|
UINT32 EntryPoint;
|
||||||
UINT32 BaseOfCode;
|
|
||||||
UINT16 MachineType;
|
UINT16 MachineType;
|
||||||
EFI_PHYSICAL_ADDRESS PeiCorePhysicalAddress;
|
EFI_PHYSICAL_ADDRESS PeiCorePhysicalAddress;
|
||||||
EFI_PHYSICAL_ADDRESS SecCorePhysicalAddress;
|
EFI_PHYSICAL_ADDRESS SecCorePhysicalAddress;
|
||||||
@ -1657,7 +1656,6 @@ Returns:
|
|||||||
Status = GetPe32Info (
|
Status = GetPe32Info (
|
||||||
(VOID *) ((UINTN) Pe32Section.Pe32Section + SecHeaderSize),
|
(VOID *) ((UINTN) Pe32Section.Pe32Section + SecHeaderSize),
|
||||||
&EntryPoint,
|
&EntryPoint,
|
||||||
&BaseOfCode,
|
|
||||||
&MachineType
|
&MachineType
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1710,7 +1708,6 @@ Returns:
|
|||||||
Status = GetPe32Info (
|
Status = GetPe32Info (
|
||||||
(VOID *) ((UINTN) Pe32Section.Pe32Section + SecHeaderSize),
|
(VOID *) ((UINTN) Pe32Section.Pe32Section + SecHeaderSize),
|
||||||
&EntryPoint,
|
&EntryPoint,
|
||||||
&BaseOfCode,
|
|
||||||
&MachineType
|
&MachineType
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -2011,7 +2008,6 @@ Returns:
|
|||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT32 EntryPoint;
|
UINT32 EntryPoint;
|
||||||
UINT32 BaseOfCode;
|
|
||||||
|
|
||||||
if (CoreMachineType == NULL) {
|
if (CoreMachineType == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
@ -2020,7 +2016,6 @@ Returns:
|
|||||||
Status = GetPe32Info(
|
Status = GetPe32Info(
|
||||||
(VOID *)((UINTN)Pe32Section.Pe32Section + GetSectionHeaderLength(Pe32Section.CommonHeader)),
|
(VOID *)((UINTN)Pe32Section.Pe32Section + GetSectionHeaderLength(Pe32Section.CommonHeader)),
|
||||||
&EntryPoint,
|
&EntryPoint,
|
||||||
&BaseOfCode,
|
|
||||||
CoreMachineType
|
CoreMachineType
|
||||||
);
|
);
|
||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR(Status)) {
|
||||||
@ -2061,7 +2056,6 @@ Returns:
|
|||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT32 EntryPoint;
|
UINT32 EntryPoint;
|
||||||
UINT32 BaseOfCode;
|
|
||||||
UINT16 MachineType;
|
UINT16 MachineType;
|
||||||
EFI_PHYSICAL_ADDRESS EntryPhysicalAddress;
|
EFI_PHYSICAL_ADDRESS EntryPhysicalAddress;
|
||||||
|
|
||||||
@ -2072,7 +2066,6 @@ Returns:
|
|||||||
Status = GetPe32Info(
|
Status = GetPe32Info(
|
||||||
(VOID *)((UINTN)Pe32Section.Pe32Section + GetSectionHeaderLength(Pe32Section.CommonHeader)),
|
(VOID *)((UINTN)Pe32Section.Pe32Section + GetSectionHeaderLength(Pe32Section.CommonHeader)),
|
||||||
&EntryPoint,
|
&EntryPoint,
|
||||||
&BaseOfCode,
|
|
||||||
&MachineType
|
&MachineType
|
||||||
);
|
);
|
||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR(Status)) {
|
||||||
@ -2521,7 +2514,6 @@ EFI_STATUS
|
|||||||
GetPe32Info (
|
GetPe32Info (
|
||||||
IN UINT8 *Pe32,
|
IN UINT8 *Pe32,
|
||||||
OUT UINT32 *EntryPoint,
|
OUT UINT32 *EntryPoint,
|
||||||
OUT UINT32 *BaseOfCode,
|
|
||||||
OUT UINT16 *MachineType
|
OUT UINT16 *MachineType
|
||||||
)
|
)
|
||||||
/*++
|
/*++
|
||||||
@ -2536,7 +2528,6 @@ Arguments:
|
|||||||
|
|
||||||
Pe32 Beginning of the PE32.
|
Pe32 Beginning of the PE32.
|
||||||
EntryPoint Offset from the beginning of the PE32 to the image entry point.
|
EntryPoint Offset from the beginning of the PE32 to the image entry point.
|
||||||
BaseOfCode Base address of code.
|
|
||||||
MachineType Magic number for the machine type.
|
MachineType Magic number for the machine type.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
@ -2568,7 +2559,6 @@ Returns:
|
|||||||
// By TeImage Header to get output
|
// By TeImage Header to get output
|
||||||
//
|
//
|
||||||
*EntryPoint = TeHeader->AddressOfEntryPoint + sizeof (EFI_TE_IMAGE_HEADER) - TeHeader->StrippedSize;
|
*EntryPoint = TeHeader->AddressOfEntryPoint + sizeof (EFI_TE_IMAGE_HEADER) - TeHeader->StrippedSize;
|
||||||
*BaseOfCode = TeHeader->BaseOfCode + sizeof (EFI_TE_IMAGE_HEADER) - TeHeader->StrippedSize;
|
|
||||||
*MachineType = TeHeader->Machine;
|
*MachineType = TeHeader->Machine;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@ -2601,7 +2591,6 @@ Returns:
|
|||||||
// Get output
|
// Get output
|
||||||
//
|
//
|
||||||
*EntryPoint = ImgHdr->Pe32.OptionalHeader.AddressOfEntryPoint;
|
*EntryPoint = ImgHdr->Pe32.OptionalHeader.AddressOfEntryPoint;
|
||||||
*BaseOfCode = ImgHdr->Pe32.OptionalHeader.BaseOfCode;
|
|
||||||
*MachineType = ImgHdr->Pe32.FileHeader.Machine;
|
*MachineType = ImgHdr->Pe32.FileHeader.Machine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +307,6 @@ EFI_STATUS
|
|||||||
GetPe32Info (
|
GetPe32Info (
|
||||||
IN UINT8 *Pe32,
|
IN UINT8 *Pe32,
|
||||||
OUT UINT32 *EntryPoint,
|
OUT UINT32 *EntryPoint,
|
||||||
OUT UINT32 *BaseOfCode,
|
|
||||||
OUT UINT16 *MachineType
|
OUT UINT16 *MachineType
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user