mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Remove unused internal structure in PeiCore
PeiCore calls REPORT_STATUS_CODE_WITH_EXTENDED_DATA() with its internal structure for Image dispatcher. No code consumes it. But, it brings confuse. DxeCore and SmmCore calls REPORT_STATUS_CODE_WITH_EXTENDED_DATA() with Handle only. To be consistent, update PeiCore to be same to DxeCore and SmmCore. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17085 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fce4ecd92c
commit
fa3d30eaca
|
@ -19,11 +19,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
///
|
///
|
||||||
#define INIT_CAR_VALUE 0x5AA55AA5
|
#define INIT_CAR_VALUE 0x5AA55AA5
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
EFI_STATUS_CODE_DATA DataHeader;
|
|
||||||
EFI_HANDLE Handle;
|
|
||||||
} PEIM_FILE_HANDLE_EXTENDED_DATA;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Discover all Peims and optional Apriori file in one FV. There is at most one
|
Discover all Peims and optional Apriori file in one FV. There is at most one
|
||||||
|
@ -659,7 +654,6 @@ PeiDispatcher (
|
||||||
UINTN SaveCurrentPeimCount;
|
UINTN SaveCurrentPeimCount;
|
||||||
UINTN SaveCurrentFvCount;
|
UINTN SaveCurrentFvCount;
|
||||||
EFI_PEI_FILE_HANDLE SaveCurrentFileHandle;
|
EFI_PEI_FILE_HANDLE SaveCurrentFileHandle;
|
||||||
PEIM_FILE_HANDLE_EXTENDED_DATA ExtendedData;
|
|
||||||
EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI *TemporaryRamSupportPpi;
|
EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI *TemporaryRamSupportPpi;
|
||||||
UINT64 NewStackSize;
|
UINT64 NewStackSize;
|
||||||
UINTN HeapTemporaryRamSize;
|
UINTN HeapTemporaryRamSize;
|
||||||
|
@ -827,13 +821,11 @@ PeiDispatcher (
|
||||||
//
|
//
|
||||||
PERF_START (PeimFileHandle, "PEIM", NULL, 0);
|
PERF_START (PeimFileHandle, "PEIM", NULL, 0);
|
||||||
|
|
||||||
ExtendedData.Handle = (EFI_HANDLE)PeimFileHandle;
|
|
||||||
|
|
||||||
REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
|
REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
(EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT_BEGIN),
|
(EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT_BEGIN),
|
||||||
(VOID *)(&ExtendedData),
|
(VOID *)(&PeimFileHandle),
|
||||||
sizeof (ExtendedData)
|
sizeof (PeimFileHandle)
|
||||||
);
|
);
|
||||||
|
|
||||||
Status = VerifyPeim (Private, CoreFvHandle->FvHandle, PeimFileHandle, AuthenticationState);
|
Status = VerifyPeim (Private, CoreFvHandle->FvHandle, PeimFileHandle, AuthenticationState);
|
||||||
|
@ -853,8 +845,8 @@ PeiDispatcher (
|
||||||
REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
|
REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
|
||||||
EFI_PROGRESS_CODE,
|
EFI_PROGRESS_CODE,
|
||||||
(EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT_END),
|
(EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT_END),
|
||||||
(VOID *)(&ExtendedData),
|
(VOID *)(&PeimFileHandle),
|
||||||
sizeof (ExtendedData)
|
sizeof (PeimFileHandle)
|
||||||
);
|
);
|
||||||
PERF_END (PeimFileHandle, "PEIM", NULL, 0);
|
PERF_END (PeimFileHandle, "PEIM", NULL, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue