summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
index bb6c1c820f..099e38ef43 100644
--- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
+++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
@@ -255,7 +255,6 @@ Returns:
UINT32 Index2;
EFI_PEI_SERVICES **PeiServices;
EFI_PEI_FV_HANDLE VolumeHandle;
- //EFI_PHYSICAL_ADDRESS PeiCoreFileHandle;
EFI_PEI_FILE_HANDLE PeimFileHandle;
UINTN FvCount;
UINTN PeimCount;
@@ -584,33 +583,6 @@ Returns:
// Shadow PEI Core. When permanent memory is avaiable, shadow
// PEI Core and PEIMs to get high performance.
//
- //PeiCoreFileHandle = 0;
- //
- // Find the PEI Core in the BFV
- //
- //Status = PeiFindFileEx (
- // (EFI_PEI_FV_HANDLE)PrivateInMem->Fv[0].FvHeader,
- // NULL,
- // EFI_FV_FILETYPE_PEI_CORE,
- // (EFI_PEI_FILE_HANDLE*)&PeiCoreFileHandle,
- // NULL
- // );
- //ASSERT_EFI_ERROR (Status);
-
- //
- // Shadow PEI Core into memory so it will run faster
- //
- //Status = PeiLoadImage (
- // PeiServices,
- // *((EFI_PEI_FILE_HANDLE*)&PeiCoreFileHandle),
- // &EntryPoint,
- // &AuthenticationState
- // );
- //ASSERT_EFI_ERROR (Status);
-
- //PrivateInMem->ShadowedPeiCore = (VOID*) ((UINTN) EntryPoint +
- // (UINTN) PeiCore -
- // (UINTN) _ModuleEntryPoint);
PrivateInMem->ShadowedPeiCore = ShadowPeiCore (
PeiServices,
PrivateInMem
@@ -626,12 +598,6 @@ Returns:
//
PeiCore (SecCoreData, NULL, PrivateInMem);
- //((PEI_CORE_ENTRY_POINT) (UINTN) PrivateInMem->ShadowedPeiCore) (
- // SecCoreData,
- // NULL,
- // PrivateInMem
- // );
-
//
// Code should not come here
//