Revision: 17103
http://sourceforge.net/p/edk2/code/17103
Author: hwu1225
Date: 2015-04-02 07:01:57 +0000 (Thu, 02 Apr 2015)
Log Message:
-----------
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.
(Sync patch r17085 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/17085
Modified Paths:
--------------
branches/UDK2014.SP1/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
Modified: branches/UDK2014.SP1/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
===================================================================
--- branches/UDK2014.SP1/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
2015-04-02 06:40:02 UTC (rev 17102)
+++ branches/UDK2014.SP1/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
2015-04-02 07:01:57 UTC (rev 17103)
@@ -19,11 +19,6 @@
///
#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
@@ -659,7 +654,6 @@
UINTN SaveCurrentPeimCount;
UINTN SaveCurrentFvCount;
EFI_PEI_FILE_HANDLE SaveCurrentFileHandle;
- PEIM_FILE_HANDLE_EXTENDED_DATA ExtendedData;
EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI *TemporaryRamSupportPpi;
UINT64 NewStackSize;
UINTN HeapTemporaryRamSize;
@@ -827,13 +821,11 @@
//
PERF_START (PeimFileHandle, "PEIM", NULL, 0);
- ExtendedData.Handle = (EFI_HANDLE)PeimFileHandle;
-
REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
EFI_PROGRESS_CODE,
(EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT_BEGIN),
- (VOID *)(&ExtendedData),
- sizeof (ExtendedData)
+ (VOID *)(&PeimFileHandle),
+ sizeof (PeimFileHandle)
);
Status = VerifyPeim (Private, CoreFvHandle->FvHandle,
PeimFileHandle, AuthenticationState);
@@ -853,8 +845,8 @@
REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
EFI_PROGRESS_CODE,
(EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT_END),
- (VOID *)(&ExtendedData),
- sizeof (ExtendedData)
+ (VOID *)(&PeimFileHandle),
+ sizeof (PeimFileHandle)
);
PERF_END (PeimFileHandle, "PEIM", NULL, 0);
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits